PHP SDK for Sentry (

Fund package maintenance!

Installs: 133 459 779

Dependents: 232

Suggesters: 38

Security: 0

Stars: 1 797

Watchers: 89

Forks: 449

Open Issues: 19

4.7.0 2024-04-10 13:22 UTC



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

Official Sentry SDK for PHP

CI Coverage Status Latest Stable Version License Total Downloads Monthly Downloads Discord

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 the SDK using Composer.

composer require sentry/sentry


Initialize the SDK as early as possible in your application.

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


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

Official integrations

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

3rd party integrations using SDK 4.x

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

  • Drupal
  • WordPress
  • ... 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 2.x

3rd party integrations using the old SDK 1.x


Contributing to the SDK

Please refer to

Getting help/support

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. There is a ton of great people in our Discord community ready to help you!


  • Documentation
  • Discord
  • Stack Overflow
  • Twitter Follow


Licensed under the MIT license, see LICENSE