PHPackages                             liuggio/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. liuggio/rackspace-cloud-files-bundle

AbandonedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

liuggio/rackspace-cloud-files-bundle
====================================

Provides rackspace cloud files support for #Symfony2 Bundles

v2.0(13y ago)78559[1 issues](https://github.com/liuggio/RackspaceCloudFilesBundle/issues)[2 PRs](https://github.com/liuggio/RackspaceCloudFilesBundle/pulls)MITPHPPHP &gt;=5.3.2

Since Feb 10Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (4)Used By (0)

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

[](#introduction)

Rackspace Cloud Files bundle is a simple and easy way to use the namespaced version of php-cloudfiles 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.

[![Build Status](https://camo.githubusercontent.com/7c44081ccf3832b14d18e052cca36775f7ca564c938ac6a4d41bddddeefb6af7/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c69756767696f2f5261636b7370616365436c6f756446696c657342756e646c652e706e67)](http://travis-ci.org/liuggio/RackspaceCloudFilesBundle)

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-cloudfiles]
    git=git://github.com/rackspace/php-cloudfiles.git
    target=/rackspace/php-cloudfiles

[RackspaceCloudFilesBundle]
    git=https://github.com/liuggio/RackspaceCloudFilesBundle.git
    target=/bundles/Liuggio/RackspaceCloudFilesBundle

[RackspaceCloudFilesStreamWrapper]
    git=https://github.com/liuggio/RackspaceCloudFilesStreamWrapper.git
    target=liuggio-rscf-streamwrapper

```

app/autoload.php

```
$loader->registerNamespaces(array(
    //other namespaces
    'Liuggio\\RackspaceCloudFilesStreamWrapper' =>  __DIR__.'/../vendor/liuggio-rscf-streamwrapper/src',
    'Liuggio\\RackspaceCloudFilesBundle'        =>  __DIR__.'/../vendor/bundles',
  ));

require_once __DIR__.'/../vendor/rackspace/php-cloudfiles/cloudfiles.php';

```

app/AppKernel.php

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

```

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

[](#installation-composer)

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

```
    "require": {
    # ..
    "liuggio/rackspace-cloud-files-bundle": ">=2.0",
    # ..
    }

```

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

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

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

[](#configuration)

app/config/config.yml

```
#  Rackspace Cloud Files configuration

liuggio_rackspace_cloud_files:
    service_class: Liuggio\RackspaceCloudFilesStreamWrapper\StreamWrapper\RackspaceCloudFilesStreamWrapper
    stream_wrapper:
        register: true  # do you want to register stream wrapper?
#        protocol_name: rscf
#        class: Liuggio\StreamWrapper\RackspaceCloudFilesStreamWrapper
    auth:
        username: YOUR-USERNAME
        api_key: YOUR-API-KEY
        host: https://lon.auth.api.rackspacecloud.com # or usa
        container_name: YOUR-CONTAINER-NAME
        region: LON # or DFW or ORD

```

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

[](#services)

Get the Rackspace service to work with:

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

```

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

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

```

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

or

$container = $this->get('liuggio_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-cloudfiles.git
- liuggio/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

License
-------

[](#license)

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

```
Resources/meta/LICENSE

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60.5% 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

4887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/446a646f719434553ab25f0f931d28ec09fbb036528126ac7e9d54a2e8132581?d=identicon)[liuggio](/maintainers/liuggio)

![](https://www.gravatar.com/avatar/97e5b23c6d1b7bd92d3ab1b3219515ab17cb504562b76e8694be6238470b87c1?d=identicon)[toretto460](/maintainers/toretto460)

---

Top Contributors

[![liuggio](https://avatars.githubusercontent.com/u/530406?v=4)](https://github.com/liuggio "liuggio (23 commits)")[![simodima](https://avatars.githubusercontent.com/u/1193857?v=4)](https://github.com/simodima "simodima (9 commits)")[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (3 commits)")[![chwarner-solo](https://avatars.githubusercontent.com/u/94145267?v=4)](https://github.com/chwarner-solo "chwarner-solo (3 commits)")

---

Tags

cloudasseticrackspace

### Embed Badge

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

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

###  Alternatives

[alibabacloud/sdk

Alibaba Cloud SDK for PHP - Easier to Use Alibaba Cloud in your PHP project

5292.1M46](/packages/alibabacloud-sdk)[sixty-nine/php-cloud-lib

A library to generate words clouds in PHP

2012.0k](/packages/sixty-nine-php-cloud-lib)

PHPackages © 2026

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