cakephp-biztech / cake-rollbar
CakePHP plugin integration for Rollbar
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- cakephp/cakephp: >=3.5.0 <4.0.0
- rollbar/rollbar: ~1.5
Requires (Dev)
- cakephp/cakephp-codesniffer: ^3.0
- phpstan/phpstan: ^0.12.32
- phpunit/phpunit: ^5.7.14|^6.0
README
CakePHP plugin integration for Rollbar error tracking tool.
Requirements
- CakePHP 3.5 or greater
- PHP 5.6 or greater
- And Rollbar account
Installation
-
You can install this plugin into your CakePHP application using composer
composer require cakephp-biztech/cake-rollbar
-
After installation, load the plugin
// src/Application.php Plugin::load('CakeRollbar');
Or, you can load the plugin using the shell command:
bin/cake plugin load CakeRollbar
Setup
Create a new Rollbar project and get post_server_item
access token by going to your project's settings. And set below config array into your config/app.php
file.
// config/app.php return [ 'Rollbar' => [ 'access_token' => env('ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN', null), 'environment' => env('APP_ENV'), ] ];
All set! 🎉
This plugin will capture and send all the notices, errors, exceptions, etc. to Rollbar for you to solve them.