Registry / observability / sentry-sentry

sentry-sentry

JSON →
library4.19.1phppackagistunverified

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

composer require sentry/sentry
INSTALL
IMPORT
SIG · SENTRY-SENTRY
S
sentry-sentry
observabilityphpv4.19.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SentrySdk
use Sentry\SentrySdk;

Initialize Sentry and capture an exception

use Sentry\SentrySdk; use Sentry\State\Hub; SentrySdk::init(['dsn' => 'https://examplePublicKey@o0.ingest.sentry.io/0']); SentrySdk::getCurrentHub()->captureException(new \Exception('Test error'));
Debug
Known issues
breakingThe SDK requires PHP 7.2+ and the curl extension.
fix
Ensure your environment meets these requirements before installation.
affects: >=4.0.0
Upgrade
Version history
4.19.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
Resources
sentry-sentry — pip install sentry-sentry · libregistry