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
Generated on May 2, 2024 via composer

sentry/sentry-laravel 4.2.0

Laravel SDK for Sentry (https://sentry.io)
Package summary
Share
0
issues
1
license
29
MIT
Package created
27 Apr 2016
Version published
29 Jan 2024
Maintainers
4
Total deps
29
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
29 Packages, Including:
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
guzzlehttp/psr7@2.6.2
illuminate/collections@v10.48.10
illuminate/conditionable@v10.48.10
illuminate/contracts@v10.48.10
illuminate/macroable@v10.48.10
illuminate/support@v10.48.10
jean85/pretty-package-versions@2.0.6
nesbot/carbon@2.72.3
nyholm/psr7@1.8.1
psr/clock@1.0.0
psr/container@2.0.2
psr/http-factory@1.0.2
psr/log@3.0.0
psr/simple-cache@3.0.0
ralouphie/getallheaders@3.0.3
sentry/sentry@4.7.0
sentry/sentry-laravel@4.2.0
symfony/deprecation-contracts@v3.4.0
symfony/http-foundation@v7.0.7
symfony/options-resolver@v7.0.7
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/psr-http-message-bridge@v7.0.7
symfony/translation@v6.4.7
symfony/translation-contracts@v3.4.2
voku/portable-ascii@2.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of sentry/sentry-laravel 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
illuminate/supportv10.48.10-MIT
prod
nyholm/psr71.8.123.14 kBMIT
prod dev
sentry/sentry4.7.0-MIT
prod
symfony/psr-http-message-bridgev7.0.7-MIT
prod

Visualizations

Frequently Asked Questions

What does sentry/sentry-laravel do?

Sentry/sentry-laravel is a popular composer package that serves as the official Laravel Software Development Kit (SDK) for Sentry. Sentry is an online tool specifically designed to track, record, and resolve software bugs more efficiently. Its goal is to assist developers in creating better software swiftly, boosting productivity and reducing instances of error or application failure.

How do you use sentry/sentry-laravel?

To use the sentry/sentry-laravel package, start by installing it using composer via the command composer require sentry/sentry-laravel. Post installation, you must enable the capturing of unhandled exceptions, which are then reported to Sentry. This change should be made in your app/Exceptions/Handler.php file with the following snippet:

use Sentry\Laravel\Integration;

public function register(): void
{
    $this->reportable(function (Throwable $e) {
        Integration::captureUnhandledException($e);
    });
}

Further, Sentry can be configured as a Laravel Log Channel allowing you to capture info and debug logs as well. Afterward, configure the Sentry DSN (Data Source Name) using the command php artisan sentry:publish --dsn=___PUBLIC_DSN___, which creates a config file (config/sentry.php) and adds the DSN to your .env file. Finally, use it in the code where required:

use function Sentry\captureException;

try {
    $this->functionThatMayFail();
} catch (\Throwable $exception) {
    captureException($exception);
}

Where are the sentry/sentry-laravel docs?

You can find the comprehensive documentation for sentry/sentry-laravel at the official Sentry website. For different Laravel versions and their Sentry implementations, refer to the following guides: