承接 graywings/docker-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

graywings/docker-client

Composer 安装命令:

composer require graywings/docker-client

包简介

Docker API client for PHP.

README 文档

README

Latest Stable Version PHP Version Require codecov

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

  1. Clone the repository
  2. Install dependencies: composer install
  3. 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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-11