muath-ye / flysystem-rackspace
Flysystem adapter for Rackspace
1.1.2
2024-05-19 13:56 UTC
Requires
- php: >=5.4.0
- league/flysystem: ^1.0|^2.0|^3.0
- rackspace/php-opencloud: ^1
Requires (Dev)
- mockery/mockery: ~0.9|^1.0
- phpunit/phpunit: ^5.7|^6.0|^7.0|^8.0|^9.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));