Docker Engine API for Laravel
A comprehensive API client with a built-in Livewire management UI. Connect via Unix socket, TCP, or TLS.
Features
100+ API endpoints Full Docker Engine API v1.53 coverage: containers, images, networks, volumes, swarm, services, nodes, tasks, secrets, configs, plugins, build, exec, and more.
Livewire UI 15 management components with Flux UI styling: dashboard, containers, images, networks, volumes, swarm, services, nodes, tasks, secrets, configs, plugins. Dark mode supported.
Real-time streaming Image pull progress via Server-Sent Events; container logs and stats; multiplexed stream decoding.
Type-safe DTOs Data Transfer Objects for list and inspect responses: ImageSummary, ContainerSummary, SystemInfo, DiskUsage, and more.
Selective caching Saloon cache plugin for read-only requests (info, version, image inspect/history) with configurable TTLs and Laravel cache driver.
Connection flexibility Unix socket (default), TCP, or TLS with certificate support. Configurable timeouts and headers.
Docker Swarm Initialize, join, leave; manage services, nodes, tasks, secrets, and configs from the UI or API.
Architecture tested Lawman expectations for Saloon connector and request classes; Pest for feature and unit tests.
Quick install
composer require eloquage/docker-php
php artisan vendor:publish --tag=docker-php.config
Set your connection in .env (Unix socket is the default):
DOCKER_CONNECTION=unix
DOCKER_UNIX_SOCKET=/var/run/docker.sock
Visit /docker (or your configured prefix) to use the management UI.
Next steps
- Getting started — Installation, configuration, and first usage
- Configuration — All config keys and environment variables
- API reference — Connector, resources, requests, and DTOs
- UI guide — Dashboard, containers, images, and swarm