PHP code example of briareos / php-airbrake-bundle
1. Go to this page and download the library: Download briareos/php-airbrake-bundle 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/ */
briareos / php-airbrake-bundle example snippets
$client = $container->get('php_airbrake.client');
$client->notifyAboutError('Something really bad happened!');
$client->notifyAboutException(new Exception('Why did I catch this? It would have been caught on its own!?!'));