PHP code example of php-bug-catcher / bug-catcher-curl-reporter
1. Go to this page and download the library: Download php-bug-catcher/bug-catcher-curl-reporter 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/ */
php-bug-catcher / bug-catcher-curl-reporter example snippets
$curlReporter = new \BugCatcher\Reporter\CurlReporter(
"https://YourBugTrackerInstance.com:8000",
'projectName',
true
);
try {
throw new Exception("Test exception");
} catch (Exception $e) {
$curlReporter->reportException($e);
}