docker-client/client
Lightweight PHP client for the Docker Engine API. Create, start, delete, inspect, list, and stream logs for containers; manage images (create/delete/inspect). Early-stage package with minimal supported actions; see examples for usage.
create, start, delete, logs), but lacks advanced orchestration features (e.g., networks, volumes, swarm). If the system requires only fundamental Docker interactions, this could suffice, but it may force workarounds for missing functionality.attach or WebSocket-based streaming). This could limit use cases like live monitoring or reactive workflows.Why Not Alternatives?
docker/docker-sdk-php (actively maintained, feature-complete) or reactphp/docker (async-first)?Docker API Version Support
Missing Features
exec, commit, or advanced networking) be addressed? Will custom wrappers be needed?Laravel-Specific Needs
Long-Term Viability
unix:///var/run/docker.sock or TCP). Must align with deployment’s Docker setup (e.g., Swarm, Kubernetes, or standalone).Container::create(), Image::inspect()).docker CLI or the official SDK for consistency.$this->app->singleton(DockerClient::class, function ($app) {
return new \Docker\Client(Docker\Client::HOST_UNIX_SOCKET);
});
exec calls via run + logs).cURL and JSON extensions (standard in Laravel). No other dependencies.exec, commit) via custom methods.ContainerStarted event).retry helper).InspectResponse objects).How can I help you explore Laravel packages today?