PHPackages                             tvision/rackspace-cloud-files-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. tvision/rackspace-cloud-files-bundle

ActiveSymfony-bundle

tvision/rackspace-cloud-files-bundle
====================================

Provides rackspace cloud files support for #Symfony2 Bundles

v3.0.0(12y ago)57.4k4[2 issues](https://github.com/tvision/RackspaceCloudFilesBundle/issues)[1 PRs](https://github.com/tvision/RackspaceCloudFilesBundle/pulls)MITPHPPHP &gt;=5.3.2

Since Feb 10Pushed 10y agoCompare

[ Source](https://github.com/tvision/RackspaceCloudFilesBundle)[ Packagist](https://packagist.org/packages/tvision/rackspace-cloud-files-bundle)[ RSS](/packages/tvision-rackspace-cloud-files-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7a5469233bf38f4bf9d37bb571788b5c376083a37c88906c3d38810e45d1a9b6/68747470733a2f2f7472617669732d63692e6f72672f74766973696f6e2f5261636b7370616365436c6f756446696c657342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/tvision/RackspaceCloudFilesBundle)[![Latest Stable Version](https://camo.githubusercontent.com/5aa8ed35739ed036a89c77119c92b5cb8046bc25c4d055633bbb71fd8f049f0b/68747470733a2f2f706f7365722e707567782e6f72672f74766973696f6e2f7261636b73706163652d636c6f75642d66696c65732d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/tvision/rackspace-cloud-files-bundle)

Introduction
------------

[](#introduction)

Rackspace Cloud Files bundle is a simple and easy way to use the RackspaceCloudFilesStreamWrapper library with Symfony2 applications,

but it has also some facilities for handle the static file with the rackspace cloud files.

This Bundle borns as fork of the escapestudios/EscapeRackspaceCloudFilesBundle, now these two bundles are very different.

see the blog post for more detail

[http://www.welcometothebundle.com/symfony2-assets-on-rackspace-cloud-files/](http://www.welcometothebundle.com/symfony2-assets-on-rackspace-cloud-files)

Installation (old school)
-------------------------

[](#installation-old-school)

see the blog post for more detail

deps:

```
[php-opencloud]
    git=git://github.com/rackspace/php-opencloud.git
    target=/rackspace/php-opencloud

[RackspaceCloudFilesBundle]
    git=https://github.com/tvision/RackspaceCloudFilesBundle.git
    target=/bundles/Tvision/RackspaceCloudFilesBundle

[RackspaceCloudFilesStreamWrapper]
    git=https://github.com/tvision/RackspaceCloudFilesStreamWrapper.git
    target=tvision-rackspace-cloud-files-streamwrapper
```

app/autoload.php

```
$loader->registerNamespaces(array(
    //other namespaces
    'Tvision\\RackspaceCloudFilesStreamWrapper' =>  __DIR__.'/../vendor/tvision-rackspace-cloud-files-streamwrapper/src',
    'Tvision\\RackspaceCloudFilesBundle'        =>  __DIR__.'/../vendor/bundles',
  ));
```

app/AppKernel.php

```
public function registerBundles()
{
    return array(
        //other bundles
        new Tvision\RackspaceCloudFilesBundle\TvisionRackspaceCloudFilesBundle(),
    );
    ...
```

Installation Composer
---------------------

[](#installation-composer)

- 1 First, add the dependent bundle to the vendor/bundles directory. Add the following lines to the composer.json file

```
    "require": {
    // ..
    "tvision/rackspace-cloud-files-bundle": "~3.0",
    // ..
    }
```

- 2 Then run `composer install`
- 3 Then add in your `app/AppKernel`

```
 class AppKernel extends Kernel
 {
     public function registerBundles()
     {
         $bundles = array(
         // ...
            new Tvision\RackspaceCloudFilesBundle\TvisionRackspaceCloudFilesBundle(),
         // ...
```

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

[](#configuration)

app/config/config.yml

```
#  Rackspace Cloud Files configuration

tvision_rackspace_cloud_files:
    stream_wrapper:
        register: true  # do you want to register stream wrapper?
        protocol_name: rscf
    auth:
        username: YOUR-USERNAME
        api_key: YOUR-API-KEY
        host: https://lon.identity.api.rackspacecloud.com/v2.0 # or https://identity.api.rackspacecloud.com/v2.0 (usa)
        container_name: YOUR-CONTAINER-NAME
        region: LON
```

Service(s)
----------

[](#services)

Get the Rackspace service to work with:

```
$auth = $this->get('tvision_rackspace_cloud_files.service')
```

Usage example without assetic
-----------------------------

[](#usage-example-without-assetic)

```
$conn = $this->get('tvision_rackspace_cloud_files.service');
$container = $conn->apiGetContainer('container-name');
```

or

```
$container = $this->get('tvision_rackspace_cloud_files.service')->apiGetContainer('container-name');

echo "";
printf("Container %s has %d object(s) consuming %d bytes\n",
    $container->name, $container->count, $container->bytes);
echo "";
```

Usage example with assetic
--------------------------

[](#usage-example-with-assetic)

see

Installing bundles assets (public directory) to cloudfiles with `rscf:assets:install` special console command
-------------------------------------------------------------------------------------------------------------

[](#installing-bundles-assets-public-directory-to-cloudfiles-with-rscfassetsinstall-special-console-command)

```
app/console rscf:assets:install rscf://my_container/my/path
```

This will copy assets just like the `assets:install` command would but directly to cloudfiles. **Note**: For those wondering why this command could be needed, note that assetic mainly handles js/css assets, and when not using the cssembed filter, you still need to install images to your cloudfiles container. This command prevent you from having to do that by hand.

Installing application assets (public directory) to cloudfiles with `assetic:install` special console command
-------------------------------------------------------------------------------------------------------------

[](#installing-application-assets-public-directory-to-cloudfiles-with-asseticinstall-special-console-command)

add this into the config.yml

```
assetic:
    debug: false
    use_controller: false
    write_to: rsfc://%rackspace_container_name%
```

Type to the console

```
app/console assetic:dump
```

Requirements
------------

[](#requirements)

- PHP &gt; 5.3.0
- rackspace/php-opencloud.git
- tvision/RackspaceCloudFilesStreamWrapper
- Symfony2

Contribute
----------

[](#contribute)

Please feel free to use the Git issue tracking to report back any problems or errors. You're encouraged to clone the repository and send pull requests if you'd like to contribute actively in developing the library. than add your name to this file under the contributor section

Contributor
-----------

[](#contributor)

- thanks for cystbear for the tips
- the bundle is a reengeneering of the escapestudios/EscapeRackspaceCloudFilesBundle

1. liuggio
2. benjamindulau
3. toretto460

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~111 days

Recently: every ~128 days

Total

6

Last Release

4284d ago

Major Versions

v2.3 → v3.0.02013-11-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/669d8a2c6c3b5694f7f34e175ad8c6689cbf9d297da28fbd1c860d1e2803a298?d=identicon)[IanDominey](/maintainers/IanDominey)

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

---

Top Contributors

[![liuggio](https://avatars.githubusercontent.com/u/530406?v=4)](https://github.com/liuggio "liuggio (28 commits)")[![simodima](https://avatars.githubusercontent.com/u/1193857?v=4)](https://github.com/simodima "simodima (21 commits)")[![claudio-dalicandro](https://avatars.githubusercontent.com/u/2378579?v=4)](https://github.com/claudio-dalicandro "claudio-dalicandro (7 commits)")[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (3 commits)")[![lmammino](https://avatars.githubusercontent.com/u/205629?v=4)](https://github.com/lmammino "lmammino (3 commits)")

---

Tags

cloudasseticrackspace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tvision-rackspace-cloud-files-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tvision-rackspace-cloud-files-bundle/health.svg)](https://phpackages.com/packages/tvision-rackspace-cloud-files-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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