PHPackages                             matgou/docker-php - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. matgou/docker-php

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

matgou/docker-php
=================

A Docker PHP client

v0.2.1(11y ago)217MITPHPPHP &gt;=5.4

Since May 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/matgou/docker-php)[ Packagist](https://packagist.org/packages/matgou/docker-php)[ RSS](/packages/matgou-docker-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Docker PHP
==========

[](#docker-php)

**Docker PHP** (for lack of a better name) is a [Docker](http://docker.io/) client written in PHP. This library is still a work in progress. Not much is supported yet, but the goal is to reach 100% API support.

The test suite currently passes against the [Docker Remote API v1.9](http://docs.docker.io/en/latest/api/docker_remote_api_v1.9/).

[![Travis-CI](https://camo.githubusercontent.com/efa5bb79bde406b420e0ebd9bb330d80d8762da26ff37e8f21e08d459da0be66/68747470733a2f2f7472617669732d63692e6f72672f7374616765312f646f636b65722d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stage1/docker-php) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/726b0b607c3e82d04bcb75b0f64f9aa94b7c2cfd6e3f4deadf5020c73df3f0d7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616765312f646f636b65722d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stage1/docker-php/?branch=master)

Versioning
----------

[](#versioning)

There is no *stable* version yet and the API is rapidly evolving, but we still try to semantically version the library according to [semver](http://semver.org/), but shifted a little bit:

- **MAJOR** version number stays to 0 until API freeze
- **MINOR** version number is incremented when a backward incompatible change is made
- **PATCH** version number is incremented when a new feature is added

So basically, if you want the `0.5` version set, use a version constraint of `~0.5.0` and you should be fine.

We are **NOT** documenting upgrade procedures until we reach a stable API, please read the code and PRs to keep up with what's going on. You can also ask us for help, we're nice people!

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

[](#installation)

The recommended way to install Docker PHP is of course to use [Composer](http://getcomposer.org/):

```
{
    "require": {
        "stage1/docker-php": "@dev"
    }
}
```

**Note**: there is no stable version of Docker PHP yet.

Usage
-----

[](#usage)

See [the documentation](https://github.com/stage1/docker-php/blob/master/doc/usage.md).

Unit Tests
----------

[](#unit-tests)

Setup the test suite using [Composer](http://getcomposer.org/):

```
$ composer install --dev

```

Run it using [PHPUnit](http://phpunit.de/):

```
$ bin/phpunit

```

Contributing
------------

[](#contributing)

Here are a few rules to follow in order to ease code reviews, and discussions before maintainers accept and merge your work.

- You **MUST** follow the [PSR-1](http://www.php-fig.org/psr/1/) and [PSR-2](http://www.php-fig.org/psr/2/).
- You **MUST** run the test suite.
- You **MUST** write (or update) unit tests.
- You **SHOULD** write documentation.

Please, write [commit messages that make sense](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), and [rebase your branch](http://git-scm.com/book/en/Git-Branching-Rebasing) before submitting your Pull Request.

One may ask you to [squash your commits](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html) too. This is used to "clean" your Pull Request before merging it (we don't want commits such as `fix tests`, `fix 2`, `fix 3`, etc.).

Also, when creating your Pull Request on GitHub, you **MUST** write a description which gives the context and/or explains why you are creating it.

Thank you!

Credits
-------

[](#credits)

This README heavily inspired by [willdurand/Negotiation](https://github.com/willdurand/Negotiation) by @willdurand. This guy is pretty awesome.

Projects
--------

[](#projects)

Projects known to be using docker-php:

- [JoliCi](https://github.com/jolicode/JoliCi), Run your tests on different and isolated stacks

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2013 Geoffrey Bachelet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.4% 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 ~38 days

Total

3

Last Release

4323d ago

### Community

Maintainers

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

---

Top Contributors

[![ubermuda](https://avatars.githubusercontent.com/u/10758?v=4)](https://github.com/ubermuda "ubermuda (123 commits)")[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (30 commits)")[![matgou](https://avatars.githubusercontent.com/u/1119417?v=4)](https://github.com/matgou "matgou (2 commits)")[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (2 commits)")[![gfyrag](https://avatars.githubusercontent.com/u/9094799?v=4)](https://github.com/gfyrag "gfyrag (1 commits)")[![nubs](https://avatars.githubusercontent.com/u/57673?v=4)](https://github.com/nubs "nubs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matgou-docker-php/health.svg)

```
[![Health](https://phpackages.com/badges/matgou-docker-php/health.svg)](https://phpackages.com/packages/matgou-docker-php)
```

###  Alternatives

[sylius/sylius

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

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

The Shopware e-commerce core

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

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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