A Docker client in PHP
PHP Shell
Clone or download
joelwurtz Merge pull request #311 from petehalverson/master
Fix `Reading logs in real time` example
Latest commit b4f9a5c May 8, 2018


Docker PHP

Docker PHP (for lack of a better name) is a Docker 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 Latest Version Software License Build Status Code Coverage Quality Score Total Downloads #docker-php on Slack


The recommended way to install Docker PHP is of course to use Composer:

composer require docker-php/docker-php

Docker API Version

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

composer require "docker-php/docker-php-api:4.1.25.*"


See the documentation.

Unit Tests

Setup the test suite using Composer if not already done:

$ composer install --dev

Run it using PHPUnit:

$ composer test


Please see CONTRIBUTING for details.


This README heavily inspired by willdurand/Negotiation by @willdurand. This guy is pretty awesome.


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