diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-02-26 03:40:02 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-02-26 03:40:02 +0300 |
commit | ada8a13ce8a3410f4260601d213404bff5fa1cc7 (patch) | |
tree | a3ae5a714cf1fc5ebe5ce76175746b4b0c8a7abe /example/example.php |
initial
Diffstat (limited to 'example/example.php')
-rw-r--r-- | example/example.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/example/example.php b/example/example.php new file mode 100644 index 0000000..cc9cbd6 --- /dev/null +++ b/example/example.php @@ -0,0 +1,14 @@ +<?php + +require_once 'vendor/autoload.php'; + +try { + $client = new jobd\Client(jobd\Client::MASTER_PORT); +} catch (Exception $e) { + die($e->getMessage()); +} + +// $status = $client->status(); +// var_dump($status->getData()); + +var_dump($client->poke(['server1'])); |