graywings / docker-client
Docker API client for PHP.
dev-main
2025-04-11 15:04 UTC
Requires
- php: >=8.4
- ext-curl: *
- guzzlehttp/guzzle: ^7.9
- ramsey/collection: ^2.1
Requires (Dev)
- captainhook/captainhook: ^5.25
- doctrine/coding-standard: ^13.0
- php-di/php-di: ^7.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.1
- ramsey/conventional-commits: ^1.6
- slevomat/coding-standard: ^8.16
- squizlabs/php_codesniffer: ^3.12
This package is auto-updated.
Last update: 2025-04-11 15:04:25 UTC
README
Docker Client for PHP
A PHP client library for Docker API
Overview
This library provides a client for easily interacting with the Docker API from PHP. It offers interfaces for managing Docker resources such as containers, images, networks, and volumes.
Requirements
- PHP 8.4 or higher
- ext-curl
Installation
Install using Composer:
composer require graywings/docker-client
Usage
use Graywings\DockerClient\DockerClient; $client = new DockerClient(); $containers = $client->containers()->list();
For detailed usage instructions, please refer to the Project Guide.
Development
Setup
- Clone the repository
- Install dependencies:
composer install
- Run tests:
composer test
Testing
# Run all tests with coverage report composer test # Run tests without coverage report composer test:no-report
Code Quality
# Run all linters composer lint # Individual linters composer lint:phpstan # Static analysis with PHPStan composer lint:phpcs # Code style check with PHP_CodeSniffer composer lint:phpcbf # Code style fix with PHP_CodeSniffer
License
MIT
Author
- Taira Terashima (taira.terashima@gmail.com)