Skip to content

metaverse-systems/docker-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metaverse-systems/docker-php-client

PHP package for communicating with Docker Engine

  • Install
composer require metaverse-systems/docker-php-client
  • Publish config file
php artisan vendor:publish --provider="MetaverseSystems\DockerPhpClient\DockerPhpClientProvider" --tag=config
  • In .env configure connection
DOCKER_API_HOST=http://localhost
DOCKER_API_SOCK=/var/run/docker.sock
  • To use:
use MetaverseSystems\DockerPhpClient\Facades\DockerClient;

print_r(DockerClient::containers());

Releases

No releases published

Packages

No packages published

Languages