PHP code example of cakephp-biztech / cake-rollbar

1. Go to this page and download the library: Download cakephp-biztech/cake-rollbar 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/ */

    

cakephp-biztech / cake-rollbar example snippets


    // src/Application.php
    Plugin::load('CakeRollbar');
    

// config/app.php
return [
    'Rollbar' => [
        'access_token' => env('ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN', null),
        'environment' => env('APP_ENV'),
    ]
];