PHPackages                             prestainfra/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. prestainfra/docker-php

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

prestainfra/docker-php
======================

A Docker PHP client

v3.0.0(3y ago)018MITPHPPHP &gt;=8.1

Since May 2Pushed 3y agoCompare

[ Source](https://github.com/PrestaInfra/docker-php)[ Packagist](https://packagist.org/packages/prestainfra/docker-php)[ GitHub Sponsors](https://github.com/flavioheleno)[ Patreon](https://www.patreon.com/flavioheleno)[ RSS](/packages/prestainfra-docker-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (17)Versions (35)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 Docker Remote API v1.25 to v1.36.

[![Documentation Status](https://camo.githubusercontent.com/b3a521bafc6d4aad656a0bdbb2b7203e7ff6d68760bcd78191570d053eede3b4/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f646f636b65722d7068702f62616467652f3f76657273696f6e3d6c6174657374)](http://docker-php.readthedocs.org/en/latest/)[![Latest Version](https://camo.githubusercontent.com/c7a8935f4c628db65d265b00e0c6b93be6c013cceb70637fd91b265f0a2ac39c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f707265737461696e6672612f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/prestainfra/docker-php/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/a088cfca9cc97a0e7070481d86475e31d71fe1601b19bb1732d802c31cd28932/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707265737461696e6672612f646f636b65722d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/prestainfra/docker-php)

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

[](#installation)

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

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

Docker API Version
------------------

[](#docker-api-version)

By default it will use the last version of docker api available, if you want to fix a version (like 1.41) you can add this requirement to composer:

```
composer require "prestainfra/docker-php-api:6.1.41.*"
```

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

```

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

[](#contributing)

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

Credits
-------

[](#credits)

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

This library is a fork of a fork [docker-php-api](https://github.com/beluga-php/docker-php) created by [Flávio Heleno](https://github.com/flavioheleno).

The original [docker-php/docker-php](https://github.com/docker-php/docker-php), created by [Geoffrey Bachelet](https://github.com/ubermuda) and [Joel Wurtz](https://github.com/joelwurtz).

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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

Recently: every ~570 days

Total

32

Last Release

1291d ago

Major Versions

v0.5.0 → 1.21.02016-01-29

1.24.x-dev → v2.0.02018-02-22

v2.0.0 → v3.0.02022-11-04

PHP version history (3 changes)v0.1.0PHP &gt;=5.4

v2.0.0PHP &gt;=7.1

v3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (235 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)")[![flavioheleno](https://avatars.githubusercontent.com/u/471860?v=4)](https://github.com/flavioheleno "flavioheleno (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (10 commits)")[![SamMousa](https://avatars.githubusercontent.com/u/547021?v=4)](https://github.com/SamMousa "SamMousa (7 commits)")[![Boran](https://avatars.githubusercontent.com/u/405059?v=4)](https://github.com/Boran "Boran (5 commits)")[![ericpoe](https://avatars.githubusercontent.com/u/1981351?v=4)](https://github.com/ericpoe "ericpoe (4 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)")[![atroy](https://avatars.githubusercontent.com/u/893505?v=4)](https://github.com/atroy "atroy (3 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)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (3 commits)")[![sibprogrammer](https://avatars.githubusercontent.com/u/187856?v=4)](https://github.com/sibprogrammer "sibprogrammer (3 commits)")[![marcvdm](https://avatars.githubusercontent.com/u/1028066?v=4)](https://github.com/marcvdm "marcvdm (2 commits)")[![Babacooll](https://avatars.githubusercontent.com/u/6329406?v=4)](https://github.com/Babacooll "Babacooll (2 commits)")[![patrickmarie](https://avatars.githubusercontent.com/u/51477363?v=4)](https://github.com/patrickmarie "patrickmarie (2 commits)")[![dbjpanda](https://avatars.githubusercontent.com/u/17483092?v=4)](https://github.com/dbjpanda "dbjpanda (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/prestainfra-docker-php/health.svg)](https://phpackages.com/packages/prestainfra-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)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[tempest/framework

The PHP framework that gets out of your way.

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

Aimeos base layer for abstracting from host environments

2.1k134.0k1](/packages/aimeos-aimeos-base)

PHPackages © 2026

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