PHPackages                             james-and-james-fulfilment/sentry - 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. james-and-james-fulfilment/sentry

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

james-and-james-fulfilment/sentry
=================================

A PHP client for Sentry (http://getsentry.com)

2.3.2(6y ago)08.3k11BSD-3-ClausePHPPHP ^7.2

Since Feb 1Pushed 3y agoCompare

[ Source](https://github.com/JamesAndJamesFulfilment/sentry-php)[ Packagist](https://packagist.org/packages/james-and-james-fulfilment/sentry)[ Docs](https://github.com/JamesAndJamesFulfilment/sentry-php)[ RSS](/packages/james-and-james-fulfilment-sentry/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (71)Used By (1)

 [ ![](https://camo.githubusercontent.com/370976471962ea536bf254c85b756ea56af48b88193fe69bf4ae266fb9f56be8/68747470733a2f2f73656e7472792d6272616e642e73746f726167652e676f6f676c65617069732e636f6d2f73656e7472792d6c6f676f2d626c61636b2e706e67) ](https://sentry.io)

Sentry for PHP
==============

[](#sentry-for-php)

[![Build Status](https://camo.githubusercontent.com/bc9a04062e73b22bf24910f3b623895a79e6b04054dd7bbbec3e19fa1cdc072f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f67657473656e7472792f73656e7472792d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/getsentry/sentry-php)[![Total Downloads](https://camo.githubusercontent.com/5d508401a00ea26c8c0cec71b9b69ac5015363d80a061d3e4b83e508747d84c5/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792f646f776e6c6f616473)](https://packagist.org/packages/sentry/sentry)[![Monthly Downloads](https://camo.githubusercontent.com/c9665d35dbde6baacc0fdbe5bc0954310eda49ae26c12a3fe78f2b6f8707624f/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792f642f6d6f6e74686c79)](https://packagist.org/packages/sentry/sentry)[![Latest Stable Version](https://camo.githubusercontent.com/ef6790c1d440fc7515a4cda057d21a093ec6938c69d02eadccc3fc5ab67db3ff/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792f762f737461626c65)](https://packagist.org/packages/sentry/sentry)[![License](https://camo.githubusercontent.com/06795fc7251edcef1f23a2dd5e0e15a51fe5c1ec8dd2a80e5a735c0986ded761/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792f6c6963656e7365)](https://packagist.org/packages/sentry/sentry)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f482760e90c36a4f3a17ef99fcfb407d354323a5282ee07c64dfde4553063eca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67657473656e7472792f73656e7472792d7068702f6d61737465722e737667)](https://scrutinizer-ci.com/g/getsentry/sentry-php/)[![Code Coverage](https://camo.githubusercontent.com/1287680467822755add2eac60adfd0cafadaf807620596e057193ca1663c924f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f67657473656e7472792f73656e7472792d7068702f6d61737465722e737667)](https://scrutinizer-ci.com/g/getsentry/sentry-php/)

The Sentry PHP error reporter tracks errors and exceptions that happen during the execution of your application and provides instant notification with detailed informations needed to prioritize, identify, reproduce and fix each issue. Learn more about [automatic PHP error reporting with Sentry](https://sentry.io/for/php/).

Features
--------

[](#features)

- Automatically report (un)handled exceptions and errors
- Send customized diagnostic data
- Process and sanitize data before sending it over the network

Usage
-----

[](#usage)

```
// Instantiate a new client with a compatible DSN and install built-in
// handlers
$client = (new Raven_Client('http://public@example.com/1'))->install();

// Capture an exception
$event_id = $client->captureException($ex);

// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;
```

For more information, see our [documentation](https://docs.getsentry.com/hosted/clients/php/).

Integration with frameworks
---------------------------

[](#integration-with-frameworks)

Other packages exists to integrate this SDK into the most common frameworks.

### Official integrations

[](#official-integrations)

The following integrations are fully supported and maintained by the Sentry team.

- [Symfony](https://github.com/getsentry/sentry-symfony)
- [Laravel](https://github.com/getsentry/sentry-laravel)

### 3rd party integrations

[](#3rd-party-integrations)

The following integrations are available and maintained by members of the Sentry community.

- [Nette](https://github.com/Salamek/raven-nette)
- [ZendFramework](https://github.com/facile-it/sentry-module)
- [WordPress](https://wordpress.org/plugins/wp-sentry-integration/)
- [Drupal](https://www.drupal.org/project/raven)
- [OpenCart](https://github.com/BurdaPraha/oc_sentry)
- [Magento2](https://github.com/justbetter/magento2-sentry)
- [October CMS](https://github.com/OFFLINE-GmbH/oc-sentry-plugin/)
- ... feel free to be famous, create a port to your favourite platform!

Community
---------

[](#community)

- [Documentation](https://docs.getsentry.com/hosted/clients/php/)
- [Bug Tracker](http://github.com/getsentry/sentry-php/issues)
- [Code](http://github.com/getsentry/sentry-php)
- [Mailing List](https://groups.google.com/group/getsentry)
- IRC (irc.freenode.net, #sentry)

Contributing
------------

[](#contributing)

Dependencies are managed through composer:

```
$ composer install

```

Tests can then be run via phpunit:

```
$ vendor/bin/phpunit

```

Tagging a Release
-----------------

[](#tagging-a-release)

1. Make sure `CHANGES` is up to date (add the release date) and `master` is green.
2. Create a new branch for the minor version (if not present):

```
$ git checkout -b releases/1.11.x

```

3. Update the hardcoded version tag in `Client.php`:

```
class Raven_Client
{
    const VERSION = '1.11.0';
}
```

4. Commit the change:

```
$ git commit -a -m "1.11.0"

```

5. Tag the branch:

```
git tag 1.11.0

```

6. Push the tag:

```
git push --tags

```

7. Switch back to `master`:

```
git checkout master

```

8. Add the next minor release to the `CHANGES` file:

```
## 1.12.0 (unreleased)

```

9. Update the version in `Client.php`:

```
class Raven_Client
{
    const VERSION = '1.12.x-dev';
}
```

10. Lastly, update the composer version in `composer.json`:

```
    "extra": {
        "branch-alias": {
            "dev-master": "1.12.x-dev"
        }
    }
```

All done! Composer will pick up the tag and configuration automatically.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 68.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~15 days

Total

69

Last Release

2298d ago

Major Versions

0.22.0 → 1.0.02016-07-28

1.10.0 → 2.0.0-beta12018-12-19

PHP version history (4 changes)0.1PHP &gt;=5.2.4

1.7.0PHP ^5.3|^7.0

2.0.0-beta1PHP ^7.1

2.3.2PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/76c703c3de96776eafc564cd80d9c50cbb5487a179984c2c90558233d38cda33?d=identicon)[doublejames-ah](/maintainers/doublejames-ah)

![](https://avatars.githubusercontent.com/u/110097854?v=4)[JJTechWizards](/maintainers/JJTechWizards)[@JJTechWizards](https://github.com/JJTechWizards)

---

Top Contributors

[![dcramer](https://avatars.githubusercontent.com/u/23610?v=4)](https://github.com/dcramer "dcramer (589 commits)")[![stayallive](https://avatars.githubusercontent.com/u/1090754?v=4)](https://github.com/stayallive "stayallive (84 commits)")[![nokitakaze](https://avatars.githubusercontent.com/u/9131758?v=4)](https://github.com/nokitakaze "nokitakaze (30 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (18 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (17 commits)")[![mvantellingen](https://avatars.githubusercontent.com/u/245297?v=4)](https://github.com/mvantellingen "mvantellingen (11 commits)")[![mabrahamde](https://avatars.githubusercontent.com/u/1302147?v=4)](https://github.com/mabrahamde "mabrahamde (9 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (9 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (9 commits)")[![jeromemacias](https://avatars.githubusercontent.com/u/582446?v=4)](https://github.com/jeromemacias "jeromemacias (9 commits)")[![mitsuhiko](https://avatars.githubusercontent.com/u/7396?v=4)](https://github.com/mitsuhiko "mitsuhiko (8 commits)")[![msabramo](https://avatars.githubusercontent.com/u/305268?v=4)](https://github.com/msabramo "msabramo (7 commits)")[![mattrobenolt](https://avatars.githubusercontent.com/u/375744?v=4)](https://github.com/mattrobenolt "mattrobenolt (6 commits)")[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (6 commits)")[![ste93cry](https://avatars.githubusercontent.com/u/1770485?v=4)](https://github.com/ste93cry "ste93cry (6 commits)")[![JonathanO](https://avatars.githubusercontent.com/u/1206546?v=4)](https://github.com/JonathanO "JonathanO (5 commits)")[![martinstuecklschwaiger](https://avatars.githubusercontent.com/u/1061218?v=4)](https://github.com/martinstuecklschwaiger "martinstuecklschwaiger (4 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (3 commits)")[![siwinski](https://avatars.githubusercontent.com/u/1034024?v=4)](https://github.com/siwinski "siwinski (3 commits)")[![thomasbachem](https://avatars.githubusercontent.com/u/231538?v=4)](https://github.com/thomasbachem "thomasbachem (3 commits)")

---

Tags

loglogging

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/james-and-james-fulfilment-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/james-and-james-fulfilment-sentry/health.svg)](https://phpackages.com/packages/james-and-james-fulfilment-sentry)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
