1. Go to this page and download the library: Download ldubois/cake-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/ */
ldubois / cake-bugsnag example snippets
// in `config/app.php`
return [
'Bugsnag' => [
'apiKey' => YOUR_Bugsnag_apiKey,
'userId' => YOUR_SESSION_USER_ID,//default => Auth.User.id in Session
'userName' => YOUR_SESSION_USER_NAME //default => Auth.User.name in Session
]
];
public function bootstrap()
{
parent::bootstrap();
$this->addPlugin(\ldubois\Bugsnag\Plugin::class);
}