vseinstrumentiru-fork / sentry
A PHP SDK for Sentry (http://sentry.io)
Requires
- php: ^7.2|^8.0
- ext-json: *
- ext-mbstring: *
- guzzlehttp/promises: ^1.4
- guzzlehttp/psr7: ^1|^2
- jean85/pretty-package-versions: ^1.5|^2.0.1
- php-http/async-client-implementation: ^1.0
- php-http/client-common: ^1.5|^2.0
- php-http/discovery: ^1.6.1
- php-http/httplug: ^1.1|^2.0
- php-http/message: ^1.5
- psr/http-factory: ^1.0
- psr/http-message-implementation: ^1.0
- psr/log: ^1.0|^2.0|^3.0
- symfony/options-resolver: ^3.4.43|^4.4.11|^5.0.11
- symfony/polyfill-php80: ^1.17
- symfony/polyfill-uuid: ^1.13.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- http-interop/http-factory-guzzle: ^1.0
- monolog/monolog: ^1.3|^2.0
- nikic/php-parser: ^4.10.3
- php-http/mock-client: ^1.3
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12
- phpstan/phpstan-phpunit: ^0.12
- phpunit/phpunit: ^8.5.13|^9.4
- symfony/phpunit-bridge: ^5.2
- vimeo/psalm: ^4.2
Suggests
- monolog/monolog: Allow sending log messages to Sentry by using the included Monolog handler.
Conflicts
- php-http/client-common: 1.8.0
- raven/raven: *
- dev-master / 3.3.x-dev
- 3.3.2.1
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-beta1
- 2.x-dev
- 2.5.2.2
- 2.5.2.1
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 2.0.0-beta2
- 2.0.0-beta1
- 1.x-dev
- 1.11.0
- 1.10.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.22.0
- 0.21.2
- 0.21.1
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.1
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1
- dev-develop
- dev-fix/do-not-instantiate-error-listener-integrations-when-dsn-is-not-set
- dev-add-breadcrumb-monolog-handler
- dev-fix-1050
This package is auto-updated.
Last update: 2021-09-24 06:52:24 UTC
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
Sentry SDK for PHP
Version | Build Status | Code Coverage |
---|---|---|
master |
||
develop |
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.
Install
To install the SDK you will need to be using Composer in your project. To install it please see the docs.
This is our "core" SDK, meaning that all the important code regarding error handling lives here.
If you are happy with using the HTTP client we recommend install the SDK like: sentry/sdk
composer require sentry/sdk
This package (sentry/sentry
) is not tied to any specific library that sends HTTP messages. Instead,
it uses Httplug to let users choose whichever
PSR-7 implementation and HTTP client they want to use.
If you just want to get started quickly you should run the following command:
composer require sentry/sentry php-http/curl-client
This is basically what our metapackage (sentry/sdk
) provides.
This will install the library itself along with an HTTP client adapter that uses
cURL as transport method (provided by Httplug). You do not have to use those
packages if you do not want to. The SDK does not care about which transport method
you want to use because it's an implementation detail of your application. You may
use any package that provides php-http/async-client-implementation
and http-message-implementation
.
Usage
\Sentry\init(['dsn' => '___PUBLIC_DSN___' ]); 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
The following integrations are available and maintained by members of the Sentry community.
- Drupal
- Neos Flow
- WordPress
- ZendFramework
- Yii2
- Silverstripe
- ... feel free to be famous, create a port to your favourite platform!
3rd party integrations using old SDK 2.x
3rd party integrations using old SDK 1.x
Community
Contributing
Dependencies are managed through composer
:
$ composer install
Tests can then be run via phpunit:
$ vendor/bin/phpunit