beluga-php / docker-php
A Docker PHP client
Fund package maintenance!
flavioheleno
Installs: 134 017
Dependents: 3
Suggesters: 0
Security: 0
Stars: 33
Watchers: 4
Forks: 266
Open Issues: 10
Requires
- php: >=8.1
- beluga-php/docker-php-api: 7.1.45.*
- nyholm/psr7: ^1.8
- php-http/client-common: ^2.7
- php-http/discovery: ^1.19
- plesk/socket-client: ^2.1
- psr/http-message: ^2.0
- symfony/filesystem: ^6.3 || ^7.0
- symfony/process: ^6.3 || ^7.0
- symfony/serializer: ^6.3 || ^7.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- friendsofphp/php-cs-fixer: ^3.8
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
- psy/psysh: ^0.12
- roave/security-advisories: dev-latest
Conflicts
- docker-php/docker-php: *
- nikic/php-parser: <4.13
- php-http/message: <1.15
- 1.45.x-dev
- v1.45.2
- 1.44.x-dev
- v1.44.0
- 1.43.x-dev
- dev-master / 1.43.x-dev
- v1.43.1
- v1.43.0
- 1.42.x-dev
- v1.42.0
- 1.41.x-dev
- v1.41.0
- 1.24.x-dev
- 1.24.0
- 1.23.x-dev
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.x-dev
- 1.22.3
- 1.22.2
- 1.22.1
- 1.22.0
- 1.21.x-dev
- 1.21.4
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21.0
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-dependabot/github_actions/shivammathur/setup-php-2.31.0
- dev-dependabot/github_actions/actions/checkout-4.1.7
- dev-dependabot/github_actions/paambaati/codeclimate-action-8.0.0
- dev-dependabot/composer/beluga-php/docker-php-api-7.1.45.0
- dev-dependabot/composer/phpunit/phpunit-tw-9.5or-tw-10.0
- dev-dependabot/composer/infection/infection-tw-0.26or-tw-0.27
- dev-dependabot/composer/vimeo/psalm-tw-4.3or-tw-5.0
This package is auto-updated.
Last update: 2024-12-12 15:21:58 UTC
README
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 Docker Remote API v1.25 to v1.36.
Installation
The recommended way to install Docker PHP is of course to use Composer:
composer require beluga-php/docker-php
Docker API Version
By default it will use the last version of docker api available, if you want to fix a version (like 1.41) you can add this requirement to composer:
composer require "beluga-php/docker-php-api:6.1.41.*"
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
Contributing
Please see CONTRIBUTING for details.
Credits
This README heavily inspired by willdurand/Negotiation by @willdurand. This guy is pretty awesome.
This library is a fork of the original docker-php/docker-php, created by Geoffrey Bachelet and Joel Wurtz.
License
The MIT License (MIT). Please see License File for more information.