# sentry-php **Repository Path**: mirrors_getsentry/sentry-php ## Basic Information - **Project Name**: sentry-php - **Description**: The official PHP SDK for Sentry (sentry.io) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
_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 [](https://github.com/getsentry/sentry-php/actions?query=workflow%3ACI+branch%3Amaster) [](https://codecov.io/gh/getsentry/sentry-php/branch/master) [](https://packagist.org/packages/sentry/sentry) [](https://packagist.org/packages/sentry/sentry) [](https://packagist.org/packages/sentry/sentry) [](https://packagist.org/packages/sentry/sentry) [](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 ### Install Install the SDK using [Composer](https://getcomposer.org/). ```bash composer require sentry/sentry ``` ### Configuration Initialize the SDK as early as possible in your application. ```php \Sentry\init(['dsn' => '___PUBLIC_DSN___' ]); ``` ### Usage ```php try { thisFunctionThrows(); // -> throw new \Exception('foo bar'); } catch (\Exception $exception) { \Sentry\captureException($exception); } ``` ## 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 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/) - Magento 2 by [JustBetter](https://github.com/justbetter/magento2-sentry) or by [Mygento](https://github.com/mygento/module-sentry) - [Joomla!](https://github.com/AlterBrains/sentry-joomla) - Neos Flow (and CMS) using [flownative/sentry](https://github.com/flownative/flow-sentry) or [networkteam/sentryclient](https://github.com/networkteam/Networkteam.SentryClient) - Neos CMS with specific Fusion handling using [networkteam/neos-sentryclient](https://github.com/networkteam/Netwokteam.Neos.SentryClient) - [TYPO3](https://github.com/networkteam/sentry_client) - ... feel free to be famous, create a port to your favourite platform! ## 3rd party integrations using the old SDK 3.x - [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 - [OXID eShop](https://github.com/OXIDprojects/sentry) - [CakePHP](https://github.com/Connehito/cake-sentry/tree/3.x) ## 3rd party integrations using the old SDK 1.x - [OpenCart](https://github.com/BurdaPraha/oc_sentry) - [TYPO3](https://github.com/networkteam/sentry_client/tree/2.1.1) ## 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 Please make sure to read the [CONTRIBUTING.md](CONTRIBUTING.md) before making a pull request. Thanks to everyone who has contributed to this project so far.