romantomchak / docker-php
A Docker PHP client
v3.0.0
2020-09-21 19:05 UTC
Requires
- php: >=7.2
- guzzlehttp/psr7: ^1.6
- php-http/client-common: ^2.3
- php-http/message: ^1.9
- php-http/socket-client: 2.0.0-beta1
- romantomchak/docker-php-api: v6.1.40.1
- symfony/filesystem: ^4.4.9 || ^5.0
- symfony/process: ^4.4.11 || ^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^6.5
Suggests
- php-http/httplug-bundle: For integration with Symfony
This package is auto-updated.
Last update: 2024-10-22 16:13:40 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.
Installation
The recommended way to install Docker PHP is of course to use Composer:
composer require romantomchak/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.40) you can add this requirement to composer:
composer require "romantomchak/docker-php-api:6.1.40.*"
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.
License
The MIT License (MIT). Please see License File for more information.