Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 964 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 964 Bytes

clue/docker-react Build Status

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.

Quickstart example

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.

Install

The recommended way to install this library is through composer. New to composer?

{
    "require": {
        "clue/docker-react": "dev-master"
    }
}

License

MIT