Skip to content

plesk/docker-php

This branch is 20 commits ahead of, 71 commits behind docker-php/docker-php:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

74a390a · Mar 12, 2025
Jan 10, 2025
Mar 11, 2025
Mar 11, 2025
Nov 2, 2021
Oct 12, 2015
Oct 20, 2017
Jan 9, 2016
Jan 9, 2020
Aug 8, 2016
Jan 10, 2025
Jan 29, 2016
Jan 10, 2025
Oct 12, 2015
Mar 11, 2025
Mar 30, 2016
Jan 9, 2020
Jan 26, 2016
Jan 10, 2025
Dec 29, 2015

Repository files navigation

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 the Docker Remote API v1.24.

Documentation Status Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

Installation

The recommended way to install Docker PHP is of course to use Composer:

composer require plesk/docker-php

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

Running Tests with docker-compose

$ docker-compose run php54
$ docker-compose run php55
$ docker-compose run php56
$ docker-compose run php70

It is recommended to run only one service during testing, since composer requirements may depend on the PHP version and we are using a host-volume during local testing.

Contributing

Please see CONTRIBUTING for details.

Versioning

Docker PHP does not follow the classic semver versioning, but follow the Docker Remote API versioning starting at the v1.21, the master branch will follow the next major release on the Docker Remote API.

Changes on the core of this library not related to the API, will be merged back to previous versions on a best effort basis.

Credits

This README heavily inspired by willdurand/Negotiation by @willdurand. This guy is pretty awesome.

Change of jane/open-api dependency

Previous version of Docker PHP library had "jane/open-api": "^1.3" composer dependency. This project is deprecated and archived. Authors suggest to use https://github.com/janephp/janephp but we used a few classes only so we rewrote them in this library (src/custom). If some issues happen we should consider to use recommended library and rewrite this library in appropriate way which could be tricky task since code is completely different

License

The MIT License (MIT). Please see License File for more information.

About

A Docker client in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • Other 0.1%