PHPackages                             nbeyond/raygun-exception-listener - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. nbeyond/raygun-exception-listener

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

nbeyond/raygun-exception-listener
=================================

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

V1.0.2(4y ago)09.8k↓42.3%MITPHPPHP ^7.3|^8.0

Since Jan 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ME-NBeyond/raygun-exception-listener)[ Packagist](https://packagist.org/packages/nbeyond/raygun-exception-listener)[ RSS](/packages/nbeyond-raygun-exception-listener/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Raygun Data Filter
==================

[](#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](http://raygun.com) package is working correctly

### With Composer

[](#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:

```
php composer.phar require tripledotzero/raygun-exception-listener
```

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

```
