PHPackages                             lialin/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lialin/docker-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lialin/docker-php
=================

A Docker PHP client

1.24.0(9y ago)014MITPHPPHP &gt;=5.4

Since May 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/0lialin0/docker-php)[ Packagist](https://packagist.org/packages/lialin/docker-php)[ RSS](/packages/lialin-docker-php/feed)WikiDiscussions 1.24 Synced 2w ago

READMEChangelogDependencies (9)Versions (30)Used By (0)

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

[](#docker-php)

**Docker PHP** (for lack of a better name) is a [Docker](http://docker.com/) client written in PHP. This library aim to reach 100% API support of the Docker Engine.

The test suite currently passes against the [Docker Remote API v1.24](http://docs.docker.com/reference/api/docker_remote_api_v1.24/).

[![Documentation Status](https://camo.githubusercontent.com/b3a521bafc6d4aad656a0bdbb2b7203e7ff6d68760bcd78191570d053eede3b4/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f646f636b65722d7068702f62616467652f3f76657273696f6e3d6c6174657374)](http://docker-php.readthedocs.org/en/latest/)[![Latest Version](https://camo.githubusercontent.com/e897733e7a397b61bba5e023244409b7413c5346e14f509b1a144bc22602417f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646f636b65722d7068702f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/docker-php/docker-php/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/0fb65debcddd0f92692de629176f6d691cb57ba789c92ec8cbfc17eb48e05bac/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646f636b65722d7068702f646f636b65722d7068702e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/docker-php/docker-php)[![Code Coverage](https://camo.githubusercontent.com/177296faf850ce54f01a17ade38343ef606ded897c6a5a1506e8941c28eec987/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f646f636b65722d7068702f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/docker-php/docker-php)[![Quality Score](https://camo.githubusercontent.com/8e5fb5d1e41d70de68dc022012a394090d21ec065edab73741b80ce11ee3075c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646f636b65722d7068702f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/docker-php/docker-php)[![Total Downloads](https://camo.githubusercontent.com/bc1c5fb21ff71b173c0a1e18f376d00b78d5caa78193cba2a63c0a77f0509c23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f636b65722d7068702f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/docker-php/docker-php)

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

[](#installation)

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

```
composer require docker-php/docker-php
```

Usage
-----

[](#usage)

See [the documentation](http://docker-php.readthedocs.org/en/latest/).

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

[](#unit-tests)

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

```
$ composer install --dev

```

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

```
$ composer test

```

### Running Tests with `docker-compose`

[](#running-tests-with-docker-compose)

```
$ docker-compose run php54
$ docker-compose run php55
$ docker-compose run php56
$ docker-compose run php70

```

It is recommended to run only one service during testing, since `composer` requirements may depend on the PHP version and we are using a host-volume during local testing.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Versioning
----------

[](#versioning)

Docker PHP does not follow the classic [semver versioning](http://semver.org/), but follow the Docker Remote API versioning starting at the v1.21, the master branch will follow the next major release on the Docker Remote API.

Changes on the core of this library not related to the API, will be merged back to previous versions on a best effort basis.

Credits
-------

[](#credits)

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

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

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

Recently: every ~94 days

Total

29

Last Release

3274d ago

Major Versions

v0.5.0 → 1.21.02016-01-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/1394fff7bfe48ba1f40beb63010e8690e27b55a1e759dbb5be5eff1fbd17cda2?d=identicon)[0lialin0](/maintainers/0lialin0)

---

Top Contributors

[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (190 commits)")[![ubermuda](https://avatars.githubusercontent.com/u/10758?v=4)](https://github.com/ubermuda "ubermuda (167 commits)")[![hacfi](https://avatars.githubusercontent.com/u/428841?v=4)](https://github.com/hacfi "hacfi (36 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (10 commits)")[![Boran](https://avatars.githubusercontent.com/u/405059?v=4)](https://github.com/Boran "Boran (5 commits)")[![tasuki](https://avatars.githubusercontent.com/u/334490?v=4)](https://github.com/tasuki "tasuki (4 commits)")[![jeffturcotte](https://avatars.githubusercontent.com/u/65089?v=4)](https://github.com/jeffturcotte "jeffturcotte (4 commits)")[![casualjim](https://avatars.githubusercontent.com/u/456109?v=4)](https://github.com/casualjim "casualjim (3 commits)")[![mycroft](https://avatars.githubusercontent.com/u/196552?v=4)](https://github.com/mycroft "mycroft (3 commits)")[![atroy](https://avatars.githubusercontent.com/u/893505?v=4)](https://github.com/atroy "atroy (3 commits)")[![sibprogrammer](https://avatars.githubusercontent.com/u/187856?v=4)](https://github.com/sibprogrammer "sibprogrammer (3 commits)")[![LeeSaferite](https://avatars.githubusercontent.com/u/47386?v=4)](https://github.com/LeeSaferite "LeeSaferite (2 commits)")[![Babacooll](https://avatars.githubusercontent.com/u/6329406?v=4)](https://github.com/Babacooll "Babacooll (2 commits)")[![krzaczek](https://avatars.githubusercontent.com/u/5773701?v=4)](https://github.com/krzaczek "krzaczek (2 commits)")[![ryanaslett](https://avatars.githubusercontent.com/u/101536?v=4)](https://github.com/ryanaslett "ryanaslett (2 commits)")[![marcvdm](https://avatars.githubusercontent.com/u/1028066?v=4)](https://github.com/marcvdm "marcvdm (2 commits)")[![micmania1](https://avatars.githubusercontent.com/u/881537?v=4)](https://github.com/micmania1 "micmania1 (2 commits)")[![patrickmarie](https://avatars.githubusercontent.com/u/51477363?v=4)](https://github.com/patrickmarie "patrickmarie (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (2 commits)")[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.5k](/packages/aws-aws-sdk-php)[civicrm/civicrm-core

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

751291.4k39](/packages/civicrm-civicrm-core)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.4k](/packages/friendsofphp-php-cs-fixer)[drupal/core

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

21866.0M1.7k](/packages/drupal-core)[sylius/sylius

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

8.5k5.9M723](/packages/sylius-sylius)

PHPackages © 2026

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