PHPackages                             treehouselabs/swift-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. treehouselabs/swift-client

ActiveLibrary

treehouselabs/swift-client
==========================

Client for the Swift object store protocol

v2.0.1(10y ago)05.3kMITPHPPHP &gt;=5.6

Since May 21Pushed 10y ago4 watchersCompare

[ Source](https://github.com/treehouselabs/swift-client)[ Packagist](https://packagist.org/packages/treehouselabs/swift-client)[ RSS](/packages/treehouselabs-swift-client/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Swift Client
============

[](#swift-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/88c5c49a04442cef4265e784362dd53718d0e3abc412f77608c933ad296a4515/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726565686f7573656c6162732f73776966742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/treehouselabs/swift-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f9171279cc5867591ad865d00a670e38f5674777d16fbb4fbd5a5fcbd9062274/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74726565686f7573656c6162732f73776966742d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/treehouselabs/swift-client)[![Coverage Status](https://camo.githubusercontent.com/5dc4584329211a27ec1abf3cc91cd3faaea6211bdd2faed8b424a7b36e75dc08/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74726565686f7573656c6162732f73776966742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/swift-client/code-structure)[![Quality Score](https://camo.githubusercontent.com/a24d7bad2ab7eb04e1194bb1fd9e536313a2bc21f7445d8545059ccf301bcfa1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74726565686f7573656c6162732f73776966742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/swift-client)

Installation
------------

[](#installation)

```
composer require treehouselabs/swift-client:~1.0
```

Usage
-----

[](#usage)

```
// use `treehouselabs/keystone-client` to initialize a Guzzle Client that can
// communicate with Keystone-authenticated services
$driver = new SwiftDriver($keystoneClient);
$store  = new ObjectStore($driver);

// create a new container and object
$container = $store->createContainer('foo');
$object = $store->createObject($container, 'bar');

// set a local file to the object
$object->setLocalFile($file);

// update the object in the store
$store->updateObject($object);

// ...

// get the stored container/object
$container = $store->getContainer('foo');
$object = $container->getObject('bar);

// get the contents
$store->getObjectContent($object);
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [Peter Kruithof](https://github.com/treehouselabs)
- [All Contributors](../../contributors)

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Total

5

Last Release

3806d ago

Major Versions

v0.1.0 → v1.0.02015-05-13

v1.0.1 → v2.0.02015-10-19

PHP version history (2 changes)v0.1.0PHP &gt;=5.5

v2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/49e70c4936c5121b835d48680dcf4bb57d21724c533dd99591e80101e4a25dd6?d=identicon)[pkruithof](/maintainers/pkruithof)

![](https://www.gravatar.com/avatar/aa2b08ed7a87334a1a0b8e302759c3587e4cbea1a1efb08f23d55cd04d1ccfc0?d=identicon)[marcojanssen](/maintainers/marcojanssen)

---

Top Contributors

[![pkruithof](https://avatars.githubusercontent.com/u/330828?v=4)](https://github.com/pkruithof "pkruithof (19 commits)")

---

Tags

Openstackswiftobject-store

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/treehouselabs-swift-client/health.svg)

```
[![Health](https://phpackages.com/badges/treehouselabs-swift-client/health.svg)](https://phpackages.com/packages/treehouselabs-swift-client)
```

###  Alternatives

[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4555.8M37](/packages/rackspace-php-opencloud)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2302.2M23](/packages/php-opencloud-openstack)[nimbusoft/flysystem-openstack-swift

Flysystem adapter for OpenStack Swift

44760.4k6](/packages/nimbusoft-flysystem-openstack-swift)[sausin/laravel-ovh

OVH Object Storage driver for laravel

40150.2k](/packages/sausin-laravel-ovh)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
