Simple async/streaming access to the Docker API, built on top of React PHP
Note: This project is in early alpha stage! Feel free to report any issues you encounter.
Once installed, you can use the following code to access the Docker API of your local docker daemon:
$loop = React\EventLoop\Factory::create();
$factory = new Factory($loop);
$client = $factory->createClient();
$client->version()->then(function ($version) {
var_dump($version);
});
$loop->run();
See also the examples.
The recommended way to install this library is through composer. New to composer?
{
"require": {
"clue/docker-react": "dev-master"
}
}
MIT