philippe-vandermoere/docker-php-sdk

1.3.0 2019-07-17 18:15 UTC

This package is auto-updated.

Last update: 2024-10-18 06:02:22 UTC


README

PHP from Packagist GitHub tag (latest SemVer) CircleCI

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)
);