PHPackages                             codekandis/sentry-client - 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. codekandis/sentry-client

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

codekandis/sentry-client
========================

This library represents a wrapper for the `Sentry SDK` with enhanced development features.

1.0.0(5y ago)0622[2 issues](https://github.com/codekandis/sentry-client/issues)1MITPHPPHP &gt;=7.4

Since Jan 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codekandis/sentry-client)[ Packagist](https://packagist.org/packages/codekandis/sentry-client)[ RSS](/packages/codekandis-sentry-client/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (1)

codekandis/sentry-client
========================

[](#codekandissentry-client)

[![Version](https://camo.githubusercontent.com/34e695c6016bc2a934a96bed696e29b2f2ab562a7134d65a55d00653cd506bea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d626c75652e737667)](./CHANGELOG.md)[![License](https://camo.githubusercontent.com/07a7d0169027aac6d7a0bfa8964dfef5fbc40d5a2075cabb3d8bc67e17be3451/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d79656c6c6f772e737667)](./LICENSE)[![Minimum PHP Version](https://camo.githubusercontent.com/0e9ac047546796cfdbe1423d1f4d91c8f37d2fbb11614a7900bb7686aaa5401f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e737667)](https://php.net)[![Code Coverage](https://camo.githubusercontent.com/af813ae002de8e31bfd234a3d5eab4fe1963ed998df54d1f3c5e3e1fe334f7d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d677265656e2e737667)](https://camo.githubusercontent.com/af813ae002de8e31bfd234a3d5eab4fe1963ed998df54d1f3c5e3e1fe334f7d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d677265656e2e737667)

`codekandis/sentry-client` is a wrapper library for the Sentry SDK package [`getsentry/sentry-php`](https://github.com/getsentry/sentry-php), currently supporting the Sentry SDK version `2.x`. It provides the functionality of the wrapped package by an object-oriented API.

Index
-----

[](#index)

- [Installation](#installation)
- [How to use](#how-to-use)
    - [Create a configuration](#create-a-configuration)
        - [Use the default configuration](#use-the-default-configuration)
        - [Implement the configuration interface on your own](#implement-the-configuration-interface-on-your-own)
    - [Instantiate the Sentry Client](#instantiate-the-sentry-client)
    - [Capturing events](#capturing-events)
        - [Manual capturing](#manual-capturing)
            - [Messages](#messages)
            - [Errors](#errors)
            - [Exceptions](#exceptions)
        - [Automatic Capturing](#automatic-capturing)
        - [Using custom error and exception handlers](#using-custom-error-and-exception-handlers)
    - [Testing](#testing)

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require codekandis/sentry-client
```

How to use
----------

[](#how-to-use)

### Create a configuration

[](#create-a-configuration)

There's two possibilites.

#### Use the default configuration

[](#use-the-default-configuration)

For convenience the default configuration [`SentryClientConfiguration`](./src/Configurations/SentryClientConfiguration.php) implements the fluent interface.

```
