graywings / docker-client
Docker API client for PHP.
dev-main
2025-04-21 08:52 UTC
Requires
- php: >=8.4
- ext-curl: *
- guzzlehttp/guzzle: ^7.9
- nesbot/carbon: ^3.9
- psr/http-message-implementation: *
- ramsey/collection: ^2.1
Requires (Dev)
- captainhook/captainhook: ^5.25
- doctrine/coding-standard: ^13.0
- graywings/standard: ^0.0.3
- 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
- vimeo/psalm: ^6.10
This package is auto-updated.
Last update: 2025-04-21 08:53:01 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
- Docker engine API 1.48 or higher
Installation
Install using Composer:
composer require graywings/docker-client
Usage
use Graywings\DockerClient\DockerClient; $client = new DockerClient(); $containers = $client->getContainers()
Development
Setup
- Clone the repository
- Install dependencies:
composer install
- Run tests:
composer test
Testing
# Run all tests with coverage report composer test:all # 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 composer lint:psalm # Static analysis with Psalm
License
MIT
Author
- Taira Terashima (taira.terashima@gmail.com)