PHPackages                             tmzkj-yii2-shop/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. tmzkj-yii2-shop/sentry

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

tmzkj-yii2-shop/sentry
======================

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

00PHP

Since Dec 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/haozhili520/sentry)[ Packagist](https://packagist.org/packages/tmzkj-yii2-shop/sentry)[ RSS](/packages/tmzkj-yii2-shop-sentry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](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:secret@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)
- ... 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.10.x

```

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

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

4. Commit the change:

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

```

5. Tag the branch:

```
git tag 1.10.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.11.0 (unreleased)

```

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

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

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

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

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

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e400b0f84e8802f2a07938ccc654c2d28621073137501bac48ff0f877918f6?d=identicon)[haozhili520](/maintainers/haozhili520)

### Embed Badge

![Health badge](/badges/tmzkj-yii2-shop-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/tmzkj-yii2-shop-sentry/health.svg)](https://phpackages.com/packages/tmzkj-yii2-shop-sentry)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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