PHP code example of evolution7 / bugsnag-cilex

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

    

evolution7 / bugsnag-cilex example snippets


     


 = new Cilex\Application();

$app->register(new Bugsnag\Cilex\Provider\BugsnagServiceProvider, array(
    'bugsnag.options' => array(
        'apiKey' => '066f5ad3590596f9aa8d601ea89af845'
    )
));

$app->get('/hello/{name}', function($name) use($app) {
    throw new Exception("Hello!");
    return 'Hello '.$app->escape($name);
});

$app->run();
bash
    curl -sS https://getcomposer.org/installer | php
    
bash
    php composer.phar install