PHPackages                             musoftware/logger-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. musoftware/logger-php

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

musoftware/logger-php
=====================

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

5.0.3(2y ago)0261MITPHPPHP ^7.2|^8.0

Since Feb 1Pushed 2y agoCompare

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

READMEChangelogDependencies (13)Versions (108)Used By (1)

 [ ![Sentry](https://camo.githubusercontent.com/63d7d9ecd366a58bdf965da3824d392a4ef345b8097753faa12ae07738ac8431/68747470733a2f2f73656e7472792d6272616e642e73746f726167652e676f6f676c65617069732e636f6d2f73656e7472792d776f72646d61726b2d6461726b2d3238307838342e706e67) ](https://sentry.io/?utm_source=github&utm_medium=logo)

*Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [**Check out our open positions**](https://sentry.io/careers/)*

Official Sentry SDK for PHP
===========================

[](#official-sentry-sdk-for-php)

[![CI](https://github.com/getsentry/sentry-php/workflows/CI/badge.svg?branch=master)](https://github.com/getsentry/sentry-php/actions?query=workflow%3ACI+branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/54fcd0e1fc0be84744623f64410ffaee588d62941756725cce0f3f309c655aba/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f67657473656e7472792f73656e7472792d7068702f6d61737465723f6c6f676f3d636f6465636f76)](https://codecov.io/gh/getsentry/sentry-php/branch/master)[![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)[![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)[![Discord](https://camo.githubusercontent.com/2da2973533965a9404e5ef0683e6cd8192988281f5860256076294e906b9c40c/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f363231373738383331363032323231303634)](https://discord.gg/cWnMQeA)

The Sentry PHP error reporter tracks errors and exceptions that happen during the execution of your application and provides instant notification with detailed information needed to prioritize, identify, reproduce and fix each issue.

Getting started
---------------

[](#getting-started)

### Install

[](#install)

Install the SDK using [Composer](https://getcomposer.org/).

```
composer require sentry/sentry
```

### Configuration

[](#configuration)

Initialize the SDK as early as possible in your application.

```
\Sentry\init(['dsn' => '___PUBLIC_DSN___' ]);
```

### Usage

[](#usage)

```
try {
    thisFunctionThrows(); // -> throw new \Exception('foo bar');
} catch (\Exception $exception) {
    \Sentry\captureException($exception);
}
```

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 using SDK 4.x
------------------------------------

[](#3rd-party-integrations-using-sdk-4x)

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

- [Drupal](https://www.drupal.org/project/raven)
- [WordPress](https://wordpress.org/plugins/wp-sentry-integration/)
- ... feel free to be famous, create a port to your favourite platform!

3rd party integrations using the old SDK 3.x
--------------------------------------------

[](#3rd-party-integrations-using-the-old-sdk-3x)

- [Neos Flow](https://github.com/flownative/flow-sentry)
- [ZendFramework](https://github.com/facile-it/sentry-module)
- [Yii2](https://github.com/notamedia/yii2-sentry)
- [Silverstripe](https://github.com/phptek/silverstripe-sentry)
- [CakePHP 3.0 - 4.3](https://github.com/Connehito/cake-sentry)
- [CakePHP 4.4+](https://github.com/lordsimal/cakephp-sentry)
- [October CMS](https://github.com/OFFLINE-GmbH/oc-sentry-plugin)

3rd party integrations using the old SDK 2.x
--------------------------------------------

[](#3rd-party-integrations-using-the-old-sdk-2x)

- [Neos Flow](https://github.com/networkteam/Networkteam.SentryClient)
- [OXID eShop](https://github.com/OXIDprojects/sentry)
- [TYPO3](https://github.com/networkteam/sentry_client)
- [CakePHP](https://github.com/Connehito/cake-sentry/tree/3.x)

3rd party integrations using the old SDK 1.x
--------------------------------------------

[](#3rd-party-integrations-using-the-old-sdk-1x)

- [Neos CMS](https://github.com/networkteam/Netwokteam.Neos.SentryClient)
- [OpenCart](https://github.com/BurdaPraha/oc_sentry)
- [TYPO3](https://github.com/networkteam/sentry_client/tree/2.1.1)

Community
---------

[](#community)

- [Documentation](https://docs.sentry.io/error-reporting/quickstart/?platform=php)
- [Bug Tracker](http://github.com/getsentry/sentry-php/issues)
- [Code](http://github.com/getsentry/sentry-php)

Contributing to the SDK
-----------------------

[](#contributing-to-the-sdk)

Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).

Getting help/support
--------------------

[](#getting-helpsupport)

If you need help setting up or configuring the PHP SDK (or anything else in the Sentry universe) please head over to the [Sentry Community on Discord](https://discord.com/invite/sentry). There is a ton of great people in our Discord community ready to help you!

Resources
---------

[](#resources)

- [![Documentation](https://camo.githubusercontent.com/89b631a7c9f547c7fff1464870c5b11aad560fe0cc1114774e8ea5addbc69f9e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d73656e7472792e696f2d677265656e2e737667)](https://docs.sentry.io/quickstart/)
- [![Discord](https://camo.githubusercontent.com/2da2973533965a9404e5ef0683e6cd8192988281f5860256076294e906b9c40c/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f363231373738383331363032323231303634)](https://discord.gg/Ww9hbqr)
- [![Stack Overflow](https://camo.githubusercontent.com/e69d3e4fed2234d76f0ebb262dc944f4abdf903ae1fea7688de7a3183ae42a49/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461636b2532306f766572666c6f772d73656e7472792d677265656e2e737667)](http://stackoverflow.com/questions/tagged/sentry)
- [![Twitter Follow](https://camo.githubusercontent.com/330d3aac03f6697a8a0d188c891131e5e89ce6e0829bda396fe78c43f4ebcd56/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f67657473656e7472793f6c6162656c3d67657473656e747279267374796c653d736f6369616c)](https://twitter.com/intent/follow?screen_name=getsentry)

License
-------

[](#license)

Licensed under the MIT license, see [`LICENSE`](LICENSE)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~41 days

Recently: every ~1 days

Total

107

Last Release

835d ago

Major Versions

3.22.0 → 4.0.02023-11-06

3.22.1 → 4.0.12023-11-13

4.5.0 → 5.0.02024-01-31

1.0.0 → 4.5.52024-01-31

4.5.5 → 5.0.12024-02-03

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

2.0.0-beta1PHP ^7.1

3.0.0PHP ^7.2

3.1.1PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a54722bbb289cee8229f0d071e5c39367e2a43ecd018c66599de880fa4c770eb?d=identicon)[musoftware](/maintainers/musoftware)

---

Top Contributors

[![dcramer](https://avatars.githubusercontent.com/u/23610?v=4)](https://github.com/dcramer "dcramer (580 commits)")[![ste93cry](https://avatars.githubusercontent.com/u/1770485?v=4)](https://github.com/ste93cry "ste93cry (196 commits)")[![cleptric](https://avatars.githubusercontent.com/u/6617432?v=4)](https://github.com/cleptric "cleptric (179 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (104 commits)")[![HazAT](https://avatars.githubusercontent.com/u/363802?v=4)](https://github.com/HazAT "HazAT (89 commits)")[![stayallive](https://avatars.githubusercontent.com/u/1090754?v=4)](https://github.com/stayallive "stayallive (60 commits)")[![nokitakaze](https://avatars.githubusercontent.com/u/9131758?v=4)](https://github.com/nokitakaze "nokitakaze (54 commits)")[![getsentry-bot](https://avatars.githubusercontent.com/u/10587625?v=4)](https://github.com/getsentry-bot "getsentry-bot (30 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)")[![jeromemacias](https://avatars.githubusercontent.com/u/582446?v=4)](https://github.com/jeromemacias "jeromemacias (9 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)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (8 commits)")[![mfb](https://avatars.githubusercontent.com/u/3278?v=4)](https://github.com/mfb "mfb (8 commits)")[![mitsuhiko](https://avatars.githubusercontent.com/u/7396?v=4)](https://github.com/mitsuhiko "mitsuhiko (7 commits)")[![musoftware](https://avatars.githubusercontent.com/u/4246716?v=4)](https://github.com/musoftware "musoftware (7 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)")

---

Tags

logloggingprofilingtracingsentryerror-handlererror-monitoringcrash-reportingcrash-reports

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/musoftware-logger-php/health.svg)

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

###  Alternatives

[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)[sentry/sdk

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

328134.8M151](/packages/sentry-sdk)[stayallive/wp-sentry

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

379197.9k](/packages/stayallive-wp-sentry)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)

PHPackages © 2026

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