PHP code example of napp / nova-bugsnag

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

    

napp / nova-bugsnag example snippets


'bugsnag' => [
    'api_key' => env('NOVA_BUGSNAG_API_KEY'),
    'project_id' => env('NOVA_BUGSNAG_PROJECT_ID'),
    'account_slug' => env('NOVA_BUGSNAG_ACCOUNT_SLUG'),
]

public function cards() 
{
    return [
        new \Napp\NovaBugsnag\BugsnagErrorRate(),
        new \Napp\NovaBugsnag\BugsnagCriticalErrors()
    ]
}