stage1 / docker-php
A Docker PHP client
Installs: 16 259
Dependents: 2
Suggesters: 0
Security: 0
Stars: 740
Watchers: 45
Forks: 182
Open Issues: 44
Requires
- php: >=7.1
- docker-php/docker-php-api: 4.1.*
- guzzlehttp/psr7: ^1.2
- php-http/client-common: ^1.6
- php-http/message: ^1.0
- php-http/socket-client: ^1.3
- symfony/filesystem: ^2.3 || ^3.0 || ^4.0
- symfony/process: ^2.3 || ^3.0 || ^4.0
Requires (Dev)
- amphp/artax: ^3.0
- amphp/socket: ^0.10.5
- friendsofphp/php-cs-fixer: 2.8.1
- 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
This package is auto-updated.
Last update: 2019-10-25 18:37:03 UTC
README
I'm backing off maintaining this library due to a lack of motivation, time and usage of docker, contact me on twitter https://twitter.com/joelwurtz if you wish to take over this repository (or just do a fork).
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.