wboyz / docker-php
A Docker PHP client
Requires
- php: >=7.1
- guzzlehttp/psr7: ^1.2
- php-http/client-common: ^2.0
- php-http/message: ^1.0
- php-http/socket-client: ^2.0
- symfony/filesystem: ^2.3 || ^3.0 || ^4.0 || ^5.0
- symfony/process: ^2.3 || ^3.0 || ^4.0 || ^5.0
- wboyz/docker-php-api: 4.2.*
Requires (Dev)
- amphp/artax: ^3.0
- amphp/socket: ^0.10.5
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^6.0
Suggests
- amphp/artax: To use the async api
- php-http/httplug-bundle: For integration with Symfony
Conflicts
- amphp/artax: <3.0
- amphp/socket: <0.10.5
- dev-master / 2.x-dev
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.0
- v1.30.0
- v1.29.0
- v1.28.0
- v1.27.0
- v1.26.0
- 1.24.x-dev
- 1.24.0
- 1.23.x-dev
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.x-dev
- 1.22.3
- 1.22.2
- 1.22.1
- 1.22.0
- 1.21.x-dev
- 1.21.4
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21.0
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-update-dependencies
This package is auto-updated.
Last update: 2024-10-19 21:06:14 UTC
README
This is a fork of the no longer maintained https://github.com/docker-php/docker-php-api repository.
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.
Installation
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.*"
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.
License
The MIT License (MIT). Please see License File for more information.