summaryrefslogtreecommitdiff
path: root/example/example.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-26 03:40:02 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-26 03:40:02 +0300
commitada8a13ce8a3410f4260601d213404bff5fa1cc7 (patch)
treea3ae5a714cf1fc5ebe5ce76175746b4b0c8a7abe /example/example.php
initial
Diffstat (limited to 'example/example.php')
-rw-r--r--example/example.php14
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']));