Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Package summary
Share
0
issues
0
licenses
Package created
27 Apr 2016
Version published
8 Mar 2024
Maintainers
4
Total deps
0
Direct deps
0
License
MIT
Generating a report...
Hold on while we generate a fresh audit report for this package.

Frequently Asked Questions

What does sentry/sentry do?

Sentry/Sentry is a PHP SDK for Sentry (http://sentry.io). This SDK helps developers in tracking errors and exceptions that occur during the execution of your application and sends instant notifications with detailed insight necessary to prioritize, identify, reproduce, and fix each issue. The deployment of this SDK aims to help developers create better software faster, making technology more enjoyable to use.

How do you use sentry/sentry?

To utilize Sentry/Sentry in your project, you must first have Composer installed. If needed, you can find the steps for installing Composer in the official documentation. Once Composer is installed, you can simply install the SDK by running composer require sentry/sdk in your terminal. Alternatively, if you want to quickly get started, you can use the following command:

composer require sentry/sentry php-http/curl-client

In your application, initialize the SDK and capture errors or exceptions as they occur:

\Sentry\init(['dsn' => '___PUBLIC_DSN___' ]); // replace '___PUBLIC_DSN___' with your project's DSN

try {
    thisFunctionThrows(); // function that throws an exception
} catch (\Exception $exception) {
    \Sentry\captureException($exception);
}

Execute the code inside a try-catch block and pass the caught exception to the \Sentry\captureException() function to collect error data.

Where are the sentry/sentry docs?

The complete documentation for Sentry/Sentry PHP SDK can be found at Sentry's official documentation hub: Sentry PHP SDK Documentation. This extensive guide covers every aspect of the SDK, from getting started and setting configurations, to using the SDK and integrating it with popular frameworks like Symfony and Laravel. It is an invaluable resource for any developer aiming to utilize Sentry/Sentry in their projects.