league/flysystem-rackspace

Flysystem adapter for Rackspace

1.0.5 2016-03-11 12:13 UTC

This package is auto-updated.

Last update: 2024-11-06 09:20:52 UTC


README

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

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));