philippe-vandermoere/docker-php-sdk

1.3.0 2019-07-17 18:15 UTC

This package is auto-updated.

Last update: 2024-12-18 06:30:46 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)
);