PHP code example of slashtrace / slashtrace-raygun

1. Go to this page and download the library: Download slashtrace/slashtrace-raygun 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-raygun example snippets


   use SlashTrace\SlashTrace;
   use SlashTrace\Raygun\RaygunHandler;

   $handler = new RaygunHandler("Your Raygun API key");
    
   $slashtrace = new SlashTrace();
   $slashtrace->addHandler($handler);