Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
saltandvinegarcrisps committed Mar 10, 2022
1 parent 02ef68c commit 2c34f9f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
Usage

```php

$pinger = new Codin\Healthchecks\Ping('0d338dcc-a054-11ec-b909-0242ac120002');
$pinger->start();
try {
// do some stuff
$pinger->success();
} catch (Exception $e) {
$pinger->fail();
}
```

0 comments on commit 2c34f9f

Please # to comment.