--- currentMenu: open-cloud --- # OpenCloud & LazyOpenCloud **Warning: LazyOpenCloud adapter has been deprecated since v0.4.0 and will be removed in v1.0.0.** First, you will need to install the adapter: ```bash composer require gaufrette/opencloud-adapter ``` To use the OpenCloud adapter you will need to create a connection using the [OpenCloud SDK](https://github.com/rackspace/php-opencloud). You can then fetch the ObjectStore which is required for the OpenCloud adapter. ## OpenCloud Example ```php 'your username', 'password' => 'your Keystone password', 'tenantName' => 'your tenant (project) name' ) ); $objectStore = $connection->objectStoreService('cloudFiles', 'LON', 'publicURL'); $adapter = new OpenCloudAdapter( $objectStore, 'container-name' ); $filesystem = new Filesystem($adapter); ``` ## Rackspace Example Rackspace uses a difference connection class ```php 'rackspace-user', 'apiKey' => '0900af093093788912388fc09dde090ffee09' ) ); $objectStore = $connection->objectStoreService('cloudFiles', 'LON', 'publicURL'); $adapter = new OpenCloudAdapter( $objectStore, 'container-name' ); $filesystem = new Filesystem($adapter); ``` ## LazyOpenCloud Example Instantiating the OpenCloud object store service has some overhead because it issues an authentication request, even if you end up not using the filesystem. For better performance you can use a lazy-loading adapter which only authenticates when needed. ```php