kreemer / docker-php
A Docker client in PHP
Requires
- php: ^7.4
- guzzlehttp/psr7: ^1.8
- jane-php/open-api-runtime: ~v6.1.1
- phpunit/phpunit: ^9.5
- psr/http-client-implementation: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- jane-php/open-api-2: ~v6.1.1
- php-http/socket-client: ^2.1.0
- phpstan/phpstan: ^0.12.85
This package is auto-updated.
Last update: 2025-03-29 00:52:00 UTC
README
Docker PHP (for lack of a better name) is a Docker client written in PHP and heavily inspired by the official docker-php Repository.
The reason this isn't a fork is because the separation between the api class files and the actual client into two repositories lead to time-consuming work to sync these two repositories.
So this repository contains the client as well as the api (basically it's the idea behind the repository Morgonus/docker-api-php-client).
This library aim to reach 100% API support of the Docker Engine.
Installation
The recommended way to install Docker PHP is of course to use Composer:
composer require kreemer/docker-php
Docker API Version
Currently only the latest version of the api is supported.
Usage
See the documentation from the original repository.
Unit Tests
Setup the test suite using Composer if not already done:
$ composer install --dev
Run it using PHPUnit:
$ composer test
Credits
This README heavily inspired by willdurand/Negotiation by @willdurand. This guy is pretty awesome.
The code and idea itself is inspired by docker-php by @JoelWurtz. This guy is too pretty awesome.
License
The MIT License (MIT). Please see License File for more information.