Download the PHP package nbeyond/raygun-exception-listener without Composer
On this page you can find all versions of the php package nbeyond/raygun-exception-listener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nbeyond/raygun-exception-listener
More information about nbeyond/raygun-exception-listener
Files in nbeyond/raygun-exception-listener
Package raygun-exception-listener
Short Description This packages uses the Raygun4PHP package. It makes it easier to filter the data that is being send to raygun, making your application GDPR compliant
License MIT
Informations about the package raygun-exception-listener
Raygun Data Filter
This package lets you add filters to the Raygun package (which this package is dependent on). By using this package you filter the data that is being send to Raygun in order to comply to the GDPR Law. You can also add/overwrite the filters to better suit your application.
Installation
Raygun Data Filter is dependent on Raygun4PHP, in order to use Raygun Data Filter make sure the Raygun4PHP package is working correctly
With Composer
Composer is a package management tool for PHP which automatically fetches dependencies and also supports autoloading - this is a low-impact way to get Raygun4PHP into your site.
1. If you use a *nix environment, follow the instructions to install Composer. Windows users can run this installer to automatically add it to the Path.
2. Within the project's root directory run the following console command:
3. From your shell run php composer.phar install (*nix) or composer install (Windows). This will download Raygun4PHP and create the appropriate autoload data.
Usage
You can automatically send both PHP errors and object-oriented exceptions to Raygun. The RaygunClient requires an HTTP transport (e.g. Guzzle or other PSR-7 compatible interface).
Currently, there are 2 Guzzle-based transport classes. asynchronous and synchronous. You can choose to use either the GuzzleSync or GuzzleAsync by setting setUseAsync
to true
.
example code
as you can see in order to send the data to Raygun, you would first need to create the config object with the BASE_URI and API_KEY.
The DisableUserTracking
is turn off by default, in order to turn it on use
it is the same for the proxy
For more information see the Raygun4PHP documentation or the Raygun website