PHPackages                             treehouselabs/swift-bundle - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. treehouselabs/swift-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

treehouselabs/swift-bundle
==========================

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

v1.0.0(11y ago)14.4kMITPHPPHP &gt;=5.5

Since Apr 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/treehouselabs/TreeHouseSwiftBundle)[ Packagist](https://packagist.org/packages/treehouselabs/swift-bundle)[ RSS](/packages/treehouselabs-swift-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Implementation of the OpenStack Swift protocol. Can be used for an object-store.

[![Build Status](https://camo.githubusercontent.com/345beffe0dcee653a39de48adc8bb9bf34897b9c47e01249ec5767ca3f9abbb8/68747470733a2f2f7472617669732d63692e6f72672f74726565686f7573656c6162732f54726565486f757365537769667442756e646c652e737667)](https://travis-ci.org/treehouselabs/TreeHouseSwiftBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d4ee9427b8fb09458cce6962b633a44a6746be774e8be39ba7570683491c739c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74726565686f7573656c6162732f54726565486f757365537769667442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/treehouselabs/TreeHouseSwiftBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8b3eb819a1345a4bfa456830d5af8ade1663e9d469330b3437638c5f63ee6471/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74726565686f7573656c6162732f54726565486f757365537769667442756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/treehouselabs/TreeHouseSwiftBundle/?branch=master)

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

[](#installation)

Add dependency:

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

Enable bundles (the KeystoneBundle is a dependency for this bundle):

```
$bundles[] = new TreeHouse\KeystoneBundle\TreeHouseKeystoneBundle();
$bundles[] = new TreeHouse\SwiftBundle\TreeHouseSwiftBundle();
```

Configuration
-------------

[](#configuration)

If you haven't done so already, configure the KeystoneBundle. For more information check the [documentation](https://github.com/treehouselabs/TreeHouseKeystoneBundle/blob/master/src/TreeHouse/KeystoneBundle/Resources/doc/01-setup.md) for that bundle. Then add the object store(s) to the Swift configuration.

```
# app/config/config.yml
tree_house_keystone:
  user_class: Acme\DemoBundle\Entity\User
  services:
    cdn:
      type: object-store
      endpoint: http://cdn.acme.org/

tree_house_swift:
  stores:
    cdn: tree_house.keystone.service.cdn
```

Enable the routing:

```
# app/config/routing.yml
cdn:
  resource: @TreeHouseSwiftBundle/Resources/config/routing.yml
  host:     cdn.acme.org
```

By default, all the routes are secured with the `ROLE_USER` expression, except for the `head_object` and `get_object` route. You can override this expression for each individual route if you want to, or you can set the default expression in the configuration:

```
# app/config/config.yml
tree_house_swift:
  expression: ROLE_CDN_USER
```

Configure a firewall for the object store if you want to use token-based authentication. The bundle does **not** do this automatically, you have to configure it yourself. Fortunately it's really easy to do:

```
# app/config/security.yml
security:
  firewalls:
    cdn:
      pattern:   ^/
      host:      cdn.acme.org
      anonymous: true
      stateless: true
      simple_preauth:
        authenticator: tree_house.keystone.token_authenticator
```

That's it, now all the object-store requests will try to authenticate using a token. By setting the firewall to allow anonymous users we ensure that you don't have to authenticate to request an object (which is kind of the point of an object-store).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4037d ago

### 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 (34 commits)")

---

Tags

Openstackkeystonecdnswiftobject-store

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nimbusoft/flysystem-openstack-swift

Flysystem adapter for OpenStack Swift

44774.4k6](/packages/nimbusoft-flysystem-openstack-swift)[uploadcare/uploadcare-php

Uploadcare PHP integration handles uploads and further operations with files by wrapping Upload and REST APIs.

1022.5M6](/packages/uploadcare-uploadcare-php)[deliciousbrains/wp-amazon-s3-and-cloudfront

Automatically copies media uploads to a storage provider's bucket for delivery. Optionally configure a CDN for even faster delivery.

310213.3k1](/packages/deliciousbrains-wp-amazon-s3-and-cloudfront)[sausin/laravel-ovh

OVH Object Storage driver for laravel

40153.5k](/packages/sausin-laravel-ovh)[vinelab/cdn

Content Delivery Network (CDN) Package for Laravel

217240.8k1](/packages/vinelab-cdn)[publiux/laravelcdn

Content Delivery Network (CDN) Package for Laravel

155230.4k](/packages/publiux-laravelcdn)

PHPackages © 2026

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