PHP code example of iivannov / snitch

1. Go to this page and download the library: Download iivannov/snitch 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/ */

    

iivannov / snitch example snippets

 php
$handler = new SentryHandler(YOUR_SENTRY_DSN);
$handler->ignore(\InvalidArgumentException::class);
 
$snitch = new Snitch();
$snitch->handler($handler);