Skip to content

praswicaksono/docker-php

Repository files navigation

PHP Docker SDK

Rewrite version of Docker PHP

Dependencies:

Not all streaming based endpoint have implemented yet.

Usage

use PRSW\Docker\Client;

$client = Client::withHttpClient();

$res = $client->systemEvents(fetch: Client::FETCH_STREAM);

forach ($res->stream() as $event) {
    var_dump($event);
}