philippe-vandermoere / docker-php-sdk
A Docker PHP client.
1.3.0
2019-07-17 18:15 UTC
Requires
- php: ^7.2.0
- ext-curl: *
- ext-json: *
- guzzlehttp/psr7: ^1.5
- php-http/curl-client: ^2.0
- steevanb/php-typed-array: ^2.0
- symfony/process: ^4.0
- zendframework/zend-diactoros: ^2.1
Requires (Dev)
- fzaninotto/faker: ^1.8
- phpstan/phpstan: 0.11.8
- phpunit/phpunit: ^8.1
- squizlabs/php_codesniffer: ^3.4
README
Docker-php-sdk
Installation
composer require philippe-vandermoere/docker-php-sdk
Usage
Socket
use PhilippeVandermoere\DockerPhpSdk\DockerFactory;
$dockerService = DockerFactory::createDockerService(
DockerFactory::createSocketDockerClient(DockerFactory::DOCKER_SOCKET_PATH)
);
TCP
use PhilippeVandermoere\DockerPhpSdk\DockerFactory;
$dockerService = DockerFactory::createDockerService(
DockerFactory::createTCPDockerClient(DockerFactory::DOCKER_TCP_HOST . ':' . DockerFactory::DOCKER_TCP_PORT)
);