PHP code example of leeroy / sail-sentryio
1. Go to this page and download the library: Download leeroy/sail-sentryio library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leeroy / sail-sentryio example snippets
try {
//...
} catch (Exception $e) {
Leeroy\Sentry::capture($e);
}
try {
//...
} catch (Exception $e) {
Leeroy\Sentry::capture(
$e,
'yourContextName',
['your' => 'context data'], // don't add too much data
['tag1', 'tag2'],
'custom message!'
);
}
bash
php sail install:official leeroy/sail-sentryio