PHP code example of slashtrace / slashtrace-sentry
1. Go to this page and download the library: Download slashtrace/slashtrace-sentry 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/ */
slashtrace / slashtrace-sentry example snippets
use SlashTrace\SlashTrace;
use SlashTrace\Sentry\SentryHandler;
$handler = new SentryHandler("https://[email protected]/123456"); // <- Your Sentry DSN. Get it from your projects settings on sentry.io
$slashtrace = new SlashTrace();
$slashtrace->addHandler($handler);