beluga-php/docker-php
A Docker PHP client
Maintainers
Fund package maintenance!
Requires
- php: >=8.1
- beluga-php/docker-php-api: 7.1.45.*
- nyholm/psr7: ^1.8
- php-http/client-common: ^2.7
- php-http/discovery: ^1.19
- php-http/socket-client: ^2.3
- psr/http-message: ^2.0
- symfony/filesystem: ^6.3 || ^7.0 || ^8.0
- symfony/process: ^6.3 || ^7.0 || ^8.0
- symfony/serializer: ^6.3 || ^7.0 || ^8.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- friendsofphp/php-cs-fixer: ^3.8
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5.46
- psy/psysh: ^0.12.8
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
- docker-php/docker-php: *
- nikic/php-parser: <4.13
- php-http/message: <1.15
Replaces
None
MIT 2eaf579e19ed08e8d3360bee545ad85f18deadc0
This package is auto-updated.
Last update: 2026-06-16 10:33:53 UTC
README
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
👁 Total Downloads
Installation
The recommended way to install Docker PHP is of course to use Composer:
composer require beluga-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.41) you can add this requirement to composer:
composer require "beluga-php/docker-php-api:6.1.41.*"
Usage
See the documentation.
Unit Tests
Setup the test suite using Composer if not already done:
$ composer install --dev
Run it using PHPUnit:
$ composer test
Contributing
Please see CONTRIBUTING for details.
Credits
This README heavily inspired by willdurand/Negotiation by @willdurand. This guy is pretty awesome.
This library is a fork of the original docker-php/docker-php, created by Geoffrey Bachelet and Joel Wurtz.
License
The MIT License (MIT). Please see License File for more information.
