docker-php-client

๐Ÿณ Docker PHP Client Documentation

๐Ÿ“– About the Project

Docker PHP Client is a modern, object-oriented library for interacting with the Docker API using PHP. The library provides a convenient and type-safe interface for working with Docker containers, images, networks, volumes, and system functions.

๐Ÿ“š Documentation Contents

Core Classes

Configurations

Docker Cluster

๐Ÿš€ Getting Started

Installation

composer require sangezar/docker-php-client

Basic Example

use Sangezar\DockerClient\DockerClient;

// Create a client connecting to local Docker daemon
$client = DockerClient::createUnix();

// List all containers
$containers = $client->container()->list(['all' => true]);

// Get Docker system information
$info = $client->system()->info();

๐Ÿ› ๏ธ Requirements

๐ŸŒ Choose Language