Skip to content

getsentry/sentry-php

Folders and files

NameName
Last commit message
Last commit date
Apr 25, 2025
Sep 21, 2022
Apr 14, 2025
Mar 5, 2024
Apr 10, 2025
Sep 21, 2022
Feb 22, 2021
Oct 24, 2023
Jul 12, 2024
Jan 13, 2022
Sep 5, 2024
May 10, 2016
Apr 11, 2025
Jan 24, 2025
Feb 16, 2023
Feb 17, 2025
May 13, 2019
Oct 6, 2020
Dec 4, 2023
Nov 13, 2023
Nov 5, 2024
Jan 13, 2022
Dec 10, 2024
Mar 13, 2023
Nov 13, 2023
May 25, 2023
Mar 13, 2023

Repository files navigation

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

Install the SDK using Composer.

composer require sentry/sentry

Configuration

Initialize the SDK as early as possible in your application.

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

Usage

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.

3rd party integrations using SDK 4.x

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

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

Community

Contributing to the SDK

Please make sure to read the CONTRIBUTING.md before making a pull request.

Thanks to everyone who has contributed to this project so far.

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!

Resources

  • Documentation
  • Discord
  • Stack Overflow
  • Twitter Follow

License

Licensed under the MIT license, see LICENSE