Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
khaydarov committed Apr 5, 2021
1 parent 9e7933d commit 8e8787a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PHP errors Catcher for [Hawk.so](https://hawk.so).

![](https://capella.pics/c0fe5eeb-027d-427a-9e0d-b2e1dcaaf303)
![](https://capella.pics/image/4c6e5fee-da7e-4bc5-a898-f19d12acb005)

## Setup

Expand All @@ -22,6 +22,20 @@ $ composer require codex-team/hawk.php
]);
```

After initialization you can set `user` or `context` for any event that will be send to Hawk

```php
\Hawk\Catcher::get()
->setUser([
'name' => 'user name',
'photo' => 'user photo',
])
->setContext([
...
]);
```


### Send events and exceptions manually

Use `sendException` method to send any caught exception
Expand Down

0 comments on commit 8e8787a

Please sign in to comment.