diff options
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'])); |