PHP code example of james-and-james-fulfilment / sentry

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

    

james-and-james-fulfilment / sentry example snippets


// Instantiate a new client with a compatible DSN and install built-in
// handlers
$client = (new Raven_Client('http://[email protected]/1'))->install();

// Capture an exception
$event_id = $client->captureException($ex);

// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;

class Raven_Client
{
    const VERSION = '1.11.0';
}

class Raven_Client
{
    const VERSION = '1.12.x-dev';
}