PHPackages                             immobiliare/sentry-php - 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. immobiliare/sentry-php

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

immobiliare/sentry-php
======================

Fork of a PHP client for Sentry (http://getsentry.com) that work also with php5.2

1.7.0(4y ago)1855.5k↓51.9%2BSD-3-ClausePHPPHP &gt;=5.2.4

Since Feb 1Pushed 4y ago5 watchersCompare

[ Source](https://github.com/immobiliare/sentry-php)[ Packagist](https://packagist.org/packages/immobiliare/sentry-php)[ Docs](https://github.com/immobiliare/sentry-php)[ RSS](/packages/immobiliare-sentry-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (42)Used By (0)

immobiliare/sentry-php
======================

[](#immobiliaresentry-php)

[![Build Status](https://camo.githubusercontent.com/3f8c1a0a9381f22be3ce4d916b188adb1557cb12aaa6f15afe3a280457dcb611/68747470733a2f2f7472617669732d63692e6f72672f696d6d6f62696c696172652f73656e7472792d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/immobiliare/sentry-php)[![Latest Stable Version](https://camo.githubusercontent.com/db64db35ab59576000b1c842ae3b54eb8938c60181e7710d7707f536e9cc8c85/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f762f737461626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)[![PHP Version Require](https://camo.githubusercontent.com/9e7798e74d90651964fc7c6175deaa18fa0cee6962b4fce18f064303ad60671e/687474703a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f726571756972652f706870)](https://packagist.org/packages/immobiliare/sentry-php)[![Total Downloads](https://camo.githubusercontent.com/938e46e7fecf54b77d462a701a8cb5ed3b1a5161104d8a332b0fac7514548153/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f646f776e6c6f6164733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)[![Latest Unstable Version](https://camo.githubusercontent.com/b2db3cd2e72a1fc36a1dc3aebab1cfaa329f8122b0c7e410bea291497b06c733/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f762f756e737461626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)[![License](https://camo.githubusercontent.com/c064ab7df05c91b2654719b65b96bc99e7d53ecabad757f141c01aacac4f3320/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f6c6963656e73653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)[![Monthly Downloads](https://camo.githubusercontent.com/bd650c38ec6109c599ed9451a7f6d6980c8ddded7afb5e5e0e150fca0194d805/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f642f6d6f6e74686c793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)[![Daily Downloads](https://camo.githubusercontent.com/292230b392f9218bf41cc9c7eae70ea7cd79f710ed4aa07ba39bd714818edd3e/68747470733a2f2f706f7365722e707567782e6f72672f696d6d6f62696c696172652f73656e7472792d7068702f642f6461696c793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/immobiliare/sentry-php)

This project is a fork of official [PHP SDK v1.7](https://github.com/getsentry/sentry-php) for [Sentry](https://getsentry.com) to work even with php5.2.

Features
--------

[](#features)

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

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

[](#installation)

There are various ways to install the PHP integration for Sentry. The recommended way is to use [Composer](http://getcomposer.org).

```
$ composer require immobiliare/sentry-php

```

Alternatively you can manually install it:

1. Download and extract the latest [sentry-php](https://github.com/immobiliare/sentry-php/archive/master.zip%3E) archive to your PHP project.
2. Require the autoloader in your application:

```
require_once '/path/to/Raven/library/Raven/Autoloader.php';
Raven_Autoloader::register();
```

Usage
-----

[](#usage)

```
// Instantiate a new client with a compatible DSN and install built-in
// handlers
$sentryClient = new Raven_Client('https://e9ebbd88548a441288393c457ec90441:399aaee02d454e2ca91351f29bdc3a07@app.getsentry.com/3235');
$sentryClient->install();

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

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

For more information, see the [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.

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

Community
---------

[](#community)

- [Documentation](https://docs.getsentry.com/hosted/clients/php/)
- [Bug Tracker](http://github.com/immobiliare/sentry-php/issues)
- [Code](http://github.com/immobiliare/sentry-php)

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

[](#contributing)

Dependencies are managed through composer:

```
$ composer install

```

Tests can then be run via phpunit:

```
$ vendor/bin/phpunit

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% 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 ~88 days

Recently: every ~459 days

Total

41

Last Release

1682d ago

Major Versions

0.22.0 → 1.0.02016-07-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dab7be39a6adf2b47f924eed2d1cc45b1e37e292557f4395961a00651d3bff5?d=identicon)[JellyBellyDev](/maintainers/JellyBellyDev)

---

Top Contributors

[![dcramer](https://avatars.githubusercontent.com/u/23610?v=4)](https://github.com/dcramer "dcramer (577 commits)")[![nokitakaze](https://avatars.githubusercontent.com/u/9131758?v=4)](https://github.com/nokitakaze "nokitakaze (26 commits)")[![JellyBellyDev](https://avatars.githubusercontent.com/u/190820?v=4)](https://github.com/JellyBellyDev "JellyBellyDev (17 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)")[![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)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (8 commits)")[![msabramo](https://avatars.githubusercontent.com/u/305268?v=4)](https://github.com/msabramo "msabramo (7 commits)")[![mitsuhiko](https://avatars.githubusercontent.com/u/7396?v=4)](https://github.com/mitsuhiko "mitsuhiko (7 commits)")[![ste93cry](https://avatars.githubusercontent.com/u/1770485?v=4)](https://github.com/ste93cry "ste93cry (6 commits)")[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (6 commits)")[![mattrobenolt](https://avatars.githubusercontent.com/u/375744?v=4)](https://github.com/mattrobenolt "mattrobenolt (6 commits)")[![JonathanO](https://avatars.githubusercontent.com/u/1206546?v=4)](https://github.com/JonathanO "JonathanO (5 commits)")[![madssj](https://avatars.githubusercontent.com/u/22311?v=4)](https://github.com/madssj "madssj (3 commits)")[![dknecht](https://avatars.githubusercontent.com/u/58620?v=4)](https://github.com/dknecht "dknecht (3 commits)")[![thomasbachem](https://avatars.githubusercontent.com/u/231538?v=4)](https://github.com/thomasbachem "thomasbachem (3 commits)")[![mgrinko](https://avatars.githubusercontent.com/u/3237782?v=4)](https://github.com/mgrinko "mgrinko (3 commits)")[![siwinski](https://avatars.githubusercontent.com/u/1034024?v=4)](https://github.com/siwinski "siwinski (3 commits)")

---

Tags

crash-reportingerror-monitoringphpphp52sentrylogloggingsentryphp52sentry-phpphp 5.2

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/immobiliare-sentry-php/health.svg)

```
[![Health](https://phpackages.com/badges/immobiliare-sentry-php/health.svg)](https://phpackages.com/packages/immobiliare-sentry-php)
```

###  Alternatives

[monolog/monolog

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

21.4k964.9M7.0k](/packages/monolog-monolog)[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)[symfony/monolog-bundle

Symfony MonologBundle

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

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

328134.8M151](/packages/sentry-sdk)[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73661.4M66](/packages/sentry-sentry-symfony)

PHPackages © 2026

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