league / flysystem-rackspace
Flysystem adapter for Rackspace
Installs: 2 151 901
Dependents: 35
Suggesters: 35
Security: 0
Stars: 37
Watchers: 11
Forks: 28
Open Issues: 10
Requires
- php: >=5.4.0
- league/flysystem: ~1.0
- rackspace/php-opencloud: ~1.16
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
README
Installation
composer require league/flysystem-rackspace
Usage
use OpenCloud\OpenStack; use OpenCloud\Rackspace; use League\Flysystem\Filesystem; use League\Flysystem\Rackspace\RackspaceAdapter as Adapter; $client = new Rackspace(Rackspace::UK_IDENTITY_ENDPOINT, array( 'username' => ':username', 'apiKey' => ':password', )); $store = $client->objectStoreService('cloudFiles', 'LON'); $container = $store->getContainer('flysystem'); $filesystem = new Filesystem(new Adapter($container));