PHPackages                             jamiehannaford/php-opencloud-zf2 - 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. [API Development](/categories/api)
4. /
5. jamiehannaford/php-opencloud-zf2

ActiveLibrary[API Development](/categories/api)

jamiehannaford/php-opencloud-zf2
================================

ZF2 module that allows easy interaction with Rackspace/OpenStack APIs

1.0.0(12y ago)31391Apache-2.0PHPPHP &gt;=5.3.3

Since Jan 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jamiehannaford/php-opencloud-zf2)[ Packagist](https://packagist.org/packages/jamiehannaford/php-opencloud-zf2)[ RSS](/packages/jamiehannaford-php-opencloud-zf2/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

php-opencloud-zf2
=================

[](#php-opencloud-zf2)

A simple but powerful ZF2 module that allows your web app to communicate easily with Rackspace/OpenStack APIs. You can manage your cloud account configurations, use Swift helper functions in your view files, monitor your cloud servers, sync directories with a CDN, update DNS records... In short, you get the full benefit of an SDK without all the overhead.

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

[](#installation)

### Step 1: Install Composer (if you haven't already)

[](#step-1-install-composer-if-you-havent-already)

```
curl -sS https://getcomposer.org/installer | php
```

### Step 2: Install the module

[](#step-2-install-the-module)

```
php composer.phar require jamiehannaford/php-opencloud-zf2:dev-master
```

This will automatically update your `composer.json` configuration file and force Composer to install the module. Alternatively, you can manually insert the requirement like so:

```
{
    "require": {
        "jamiehannaford/php-opencloud-zf2": "~1.0"
    }
}
```

And then run:

```
php composer.phar install
```

### Step 3: ZF2 Configuration

[](#step-3-zf2-configuration)

You need to update your `application.config.php` file, and add in the module:

```
return array(
    'modules' => array(
        // other modules...
        'OpenCloud'
    )
);
```

You then need to make sure you have an `opencloud.local.php` configuration file in your `config/autoload`directory - since this is what holds all your API configuration values. To make life easier, you can copy the dist version shipped with this project:

```
cp ./vendor/jamiehannaford/php-opencloud-zf2/config/opencloud.local.php.dist ./config/autoload/opencloud.local.php
```

If using Rackspace, you must fill in the `username` and `apiKey` config options.

If using OpenStack, you must fill in the `username`, `password` config options, along with *either* `tenantId` or `tenantName`.

Usage
-----

[](#usage)

You can retrieve a Rackspace client object using the Service Manager:

```
public function indexAction()
{
    // get Rackspace client
    $rackspace = $this->getServiceLocator()->get('OpenCloud');

    // this also works
    $rackspace = $this->getServiceLocator()->get('OpenCloud\Rackspace');

    // get OpenStack client
    $openstack = $this->getServiceLocator()->get('OpenCloud\OpenStack');
}
```

Once this client object is available, you have full access to the [php-opencloud SDK](https://github.com/rackspace/php-opencloud).

### View helpers

[](#view-helpers)

Please see the [CloudFilesHelper wiki](https://github.com/jamiehannaford/php-opencloud-zf2/wiki/Using-the-CloudFiles-View-Helper)for more information about how you can streamline the process of accessing CDN resources in your HTML views.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~0 days

Total

3

Last Release

4546d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1867202?v=4)[Jamie Hannaford](/maintainers/jamiehannaford)[@jamiehannaford](https://github.com/jamiehannaford)

---

Top Contributors

[![jamiehannaford](https://avatars.githubusercontent.com/u/1867202?v=4)](https://github.com/jamiehannaford "jamiehannaford (22 commits)")[![AlexeyKosov](https://avatars.githubusercontent.com/u/8222004?v=4)](https://github.com/AlexeyKosov "AlexeyKosov (1 commits)")

### Embed Badge

![Health badge](/badges/jamiehannaford-php-opencloud-zf2/health.svg)

```
[![Health](https://phpackages.com/badges/jamiehannaford-php-opencloud-zf2/health.svg)](https://phpackages.com/packages/jamiehannaford-php-opencloud-zf2)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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