1. Go to this page and download the library: Download mamitech/tikus 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/ */
use Tikus;
...
public function report(Exception $exception)
{
if ($this->shouldReport($exception)) {
Tikus::reportException($exception);
}
parent::report($exception);
}
use Tikus;
Tikus::reportException($e);
use Tikus;
...
catch (Exception $e)
{
Tikus::reportException($e);
}
Tikus::reportException(new Exception('Data not found'), [
'data_id': $data->id
]);