Download the PHP package guidofaecke/laminas-airbrake without Composer
On this page you can find all versions of the php package guidofaecke/laminas-airbrake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guidofaecke/laminas-airbrake
More information about guidofaecke/laminas-airbrake
Files in guidofaecke/laminas-airbrake
Package laminas-airbrake
Short Description Airbrake (phpbrake) integration for Laminas
License GPL-2.0
Homepage https://guidofaecke.github.io/
Informations about the package laminas-airbrake
Laminas Airbrake
Airbrake (phpbrake) integration for Laminas.
Airbrake is a tool that captures and tracks your application's exceptions. This library connects your Laminas application to Airbrake, to make exception tracking possible. It is also possible to use Laminas Airbrake with different services that use the Airbrake protocol, like CodebaseHQ.
Installing
Use composer to install this module.
After composer installation, make sure that the \guidofaecke\LaminasAirbrake module is added to the module configuration.
In most cases, the module configuration can be found in config/module.config.php
Connection configuration
It is required to correctly set the connection settings to connect to the Airbrake instance. These can be set in the
local Zend configuration (config/autoload/local.php).
Custom airbrake filters
Custom filters can be defined to add extra params to the airbrake notification, or to alter context information.
Writing a custom airbrake filter
Custom airbrake filters should be either functions requiring a notice array as paramater (as with https://github.com/airbrake/phpbrake), or a class implementing the FilterInterface (recommended).
For example:
To make sure the filter is used by Laminas Airbrake, it should be added to the configuration.
It is possible to use a factory for your Laminas Airbrake filters. To make use of this, simply add the filter to your service manager configuration.
Disabling airbrake for development environments
You might want to disable airbrake in the development environment. To do this, you can use the local zend configuration,
and set the log_errors configuration option to false.
For example, file: config/autload/local.php
Via the laminas local configuration, it is also possible to use different connection settings or different filters for different environments.
All versions of laminas-airbrake with dependencies
airbrake/phpbrake Version ^0.3
laminas/laminas-component-installer Version ^2.4.0 || ^3.0.0
laminas/laminas-http Version ^2.16
laminas/laminas-mvc Version ^3.3
laminas/laminas-stdlib Version ^3.13
psr/container Version ^1.1.2