graywings/docker-client
Composer 安装命令:
composer require graywings/docker-client
包简介
Docker API client for PHP.
README 文档
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)
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-11