2017 © Pedro Peláez
 

library purgatory

Where objects go to wait. Easily work with any cloud object-store.

image

funnylookinhat/purgatory

Where objects go to wait. Easily work with any cloud object-store.

  • Monday, December 8, 2014
  • by funnylookinhat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 501 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 20 Versions
  • 1 % Grown

The README.md

purgatory

Where objects to go wait., (*1)

Purgatory is a platform agnostic object store library. You can build your fancy whatever.js.it.er with support for image uploads and delivery via local storage, and convert it to infinitely scalable cloud storage by simply changing the credentials provided., (*2)

Installation

Add the following to your composer.json:, (*3)

"funnylookinhat/purgatory": "dev-master"

Basic Usage

Everything begins with initializing a provider; this can include platform-specific options, but all API calls after this point are platform agnostic., (*4)

$purgatory = new Purgatory((object)array(
    'provider' => 'rackspace',
    'region' => 'ORD',
    'username' => 'myUsername',
    'apiKey' => 'myApiKey',
));

All functions that begin with get and create will return an object, whereas functions that begin with list return strings ( of names )., (*5)

Containers are the entry point to manipulate objects., (*6)

$container = $purgatory->getContainer('someContainer');
$containers = $purgatory->getContainers();
$containerNames = $purgatory->listContainers();
$container = $purgatory->createContainer('myContainer');

Once you have a container, you can manipulate objects., (*7)

$name = $container->getName();
$object = $container->getObject('myObject');
$object = $container->createObject('someObject', 'path/to/someObject.file');
$objects = $container->getAllObjects();
$objectNames = $container->listAllObjects();
$container->enableCdn();
$container->disableCdn();
$url = $container->getUrl();
$sslUrl = $container->getSslUrl();

Objects also have several actions., (*8)

$name = $object->getName();
$object->update($path);
$md5 = $object->getChecksum();
$url = $object->getUrl();
$sslUrl = $object->getSslUrl();

The Versions

08/12 2014

dev-master

9999999-dev

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

08/12 2014

v1.0.8

1.0.8.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

09/10 2014

v0.1.7

0.1.7.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

08/10 2014

v1.0.7

1.0.7.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

07/10 2014

v0.1.6

0.1.6.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

07/10 2014

v0.1.5

0.1.5.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

08/09 2014

v0.1.4

0.1.4.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

12/07 2014

v0.1.3

0.1.3.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

11/07 2014

v0.1.2

0.1.2.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

10/07 2014

v0.1.1

0.1.1.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

30/06 2014

dev-local-provider

dev-local-provider

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

30/06 2014

v0.1.0

0.1.0.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

19/06 2014

v0.0.8

0.0.8.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.7

0.0.7.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.6

0.0.6.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.5

0.0.5.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.4

0.0.4.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.3

0.0.3.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

php s3 rackspace openstack swift cloudfiles object-store ceph

18/06 2014

v0.0.2

0.0.2.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash

18/06 2014

v0.0.1

0.0.1.0

Where objects go to wait. Easily work with any cloud object-store.

  Sources   Download

MIT

The Requires

 

by David Overcash