PHPackages                             dockercloud/api - 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. dockercloud/api

ArchivedLibrary[API Development](/categories/api)

dockercloud/api
===============

A PHP Wrapper for DockerCloud API

1.8(9y ago)92.1k8BSD-3-ClausePHPPHP &gt;=5.5

Since Feb 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/allansun/docker-cloud-php-api)[ Packagist](https://packagist.org/packages/dockercloud/api)[ RSS](/packages/dockercloud-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (15)Versions (8)Used By (0)

DockerCloud API PHP Wrapper
===========================

[](#dockercloud-api-php-wrapper)

This is a PHP FULL implementation of [DockerCloud](http://cloud.docker.com)'s [API](https://docs.docker.com/apidocs/docker-cloud/)

[![Minimum PHP Version](https://camo.githubusercontent.com/611cbfbf3ae9d3fdf00688fad6cd1ed52831fba4f6f61fd0cf7fec6df909a037/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e352d3838393242462e7376673f7374796c653d706c6173746963)](https://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/94f79a34e578f27858505ea8e8372d90506aaea4c790f07bb3fb177400b75c1e/68747470733a2f2f706f7365722e707567782e6f72672f646f636b6572636c6f75642f6170692f76657273696f6e)](https://packagist.org/packages/dockercloud/api)[![Build Status](https://camo.githubusercontent.com/1c33bb558b1b159ac9232f07e66cd320889b91e144c5a013507233ac7ecb3ca0/68747470733a2f2f7472617669732d63692e6f72672f616c6c616e73756e2f646f636b65722d636c6f75642d7068702d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/allansun/docker-cloud-php-api)[![Coverage Status](https://camo.githubusercontent.com/952961f1eeae62ecc93fcd4e335cb9aac5d066a11a6a1f8728fd5181778a9e35/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616c6c616e73756e2f646f636b65722d636c6f75642d7068702d6170692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/allansun/docker-cloud-php-api?branch=master)[![Gitter](https://camo.githubusercontent.com/36bd606a429f6d0024a5501ee1b7099a2401ee2ad6664d080e5bd682bd411f8e/68747470733a2f2f6261646765732e6769747465722e696d2f616c6c616e73756e2f646f636b65722d636c6f75642d7068702d6170692e7376673f7374796c653d706c6173746963)](https://gitter.im/allansun/docker-cloud-php-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

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

[](#installation)

Add a dependency on dockercloud/api to your project's `composer.json` by utilizing the \[Composer\](.org/) package manager.

```
{
    "require-dev": {
        "dockercloud/api": "@stable"
    }
}
```

Usage instruction
-----------------

[](#usage-instruction)

Goto  to generate an API Key first.

Now you need to configure authentication credentials via a static method, (you only need to do this once).

```
DockerCloud\Client::configure('username','apikey');
```

To get a list of services under your account:

```
$API = new DockerCloud\API\Service();
$Response = $API->getList();
$MetaData = $Response->getMeta();
$services = $Response->getObjects();
```

- $MetaData is a [MetaData](https://github.com/allansun/docker-cloud-php-api/blob/master/src/Model/Response/MetaData.php) object
- $services contains an array of ['Service'](https://docs.docker.com/apidocs/docker-cloud/?shell#services),

To create a new service

```
$Model = new DockerCloud\Model\Service();
$Model->setImageName('tutum/hello-world');

$API = new DockerCloud\API\Service();
$Model = $API->create($Model);
```

API Implementations
-------------------

[](#api-implementations)

This API Wrapper implements all API endpoints currently provided by DockerCloud, for full documentation on how to use it please refere to [API](https://docs.docker.com/apidocs/docker-cloud/)

- Audit
    - [Action](https://docs.docker.com/apidocs/docker-cloud/?shell#actions)
    - [Event](https://docs.docker.com/apidocs/docker-cloud/?shell#docker-cloud-events)
- Infrastructure
    - [Provider](https://docs.docker.com/apidocs/docker-cloud/?shell#providers)
    - [Region](https://docs.docker.com/apidocs/docker-cloud/?shell#regions)
    - [Availability Zone](https://docs.docker.com/apidocs/docker-cloud/?shell#availability-zones)
    - [Node Type](https://docs.docker.com/apidocs/docker-cloud/?shell#node-types)
    - [Node Cluster](https://docs.docker.com/apidocs/docker-cloud/?shell#node-clusters)
    - [Node](https://docs.docker.com/apidocs/docker-cloud/?shell#nodes)
- Repositor
    - [Registry](https://docs.docker.com/apidocs/docker-cloud/?shell#registries)
    - [External Repository](https://docs.docker.com/apidocs/docker-cloud/?shell#external-repositories)
- Application
    - [Stack](https://docs.docker.com/apidocs/docker-cloud/?shell#stacks)
    - [Container](https://docs.docker.com/apidocs/docker-cloud/?shell#containers)
    - [Service](https://docs.docker.com/apidocs/docker-cloud/?shell#services)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 89.1% 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 ~44 days

Recently: every ~75 days

Total

8

Last Release

3479d ago

### Community

Maintainers

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

---

Top Contributors

[![allansun](https://avatars.githubusercontent.com/u/20531?v=4)](https://github.com/allansun "allansun (57 commits)")[![matthewbaggett](https://avatars.githubusercontent.com/u/943948?v=4)](https://github.com/matthewbaggett "matthewbaggett (4 commits)")[![yunmoxue](https://avatars.githubusercontent.com/u/2329555?v=4)](https://github.com/yunmoxue "yunmoxue (3 commits)")

---

Tags

apidockerdocker-clouddockercloud

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dockercloud-api/health.svg)

```
[![Health](https://phpackages.com/badges/dockercloud-api/health.svg)](https://phpackages.com/packages/dockercloud-api)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.6k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M17](/packages/pantheon-systems-terminus)

PHPackages © 2026

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