{"id":13462588,"url":"https://github.com/getsentry/sentry-laravel","last_synced_at":"2026-01-07T11:04:56.185Z","repository":{"id":38837613,"uuid":"57104860","full_name":"getsentry/sentry-laravel","owner":"getsentry","description":"The official Laravel SDK for Sentry (sentry.io)","archived":false,"fork":false,"pushed_at":"2025-04-25T14:36:31.000Z","size":1515,"stargazers_count":1285,"open_issues_count":16,"forks_count":190,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-05-11T13:59:39.072Z","etag":null,"topics":["crash-reporting","crash-reports","error-monitoring","hacktoberfest","laravel","php","sdk","sentry","sentry-client","tag-production","team-web-backend"],"latest_commit_sha":null,"homepage":"https://sentry.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2016-04-26T06:48:39.000Z","updated_at":"2025-05-07T12:57:54.000Z","dependencies_parsed_at":"2024-04-22T09:26:01.183Z","dependency_job_id":"ca61bb2b-9e4d-43db-ac0d-f784819d067e","html_url":"https://github.com/getsentry/sentry-laravel","commit_stats":{"total_commits":669,"total_committers":86,"mean_commits":7.77906976744186,"dds":0.6890881913303438,"last_synced_commit":"85502656da86271ed757ee8490fe9b108c76ad59"},"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/sentry-laravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253576264,"owners_count":21930169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crash-reporting","crash-reports","error-monitoring","hacktoberfest","laravel","php","sdk","sentry","sentry-client","tag-production","team-web-backend"],"created_at":"2024-07-31T12:00:52.932Z","updated_at":"2026-01-07T11:04:56.179Z","avatar_url":"https://github.com/getsentry.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://sentry.io/?utm_source=github\u0026utm_medium=logo\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-laravel.png\" alt=\"Sentry for Laravel\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n_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 [\u003ckbd\u003e**Check out our open positions**\u003c/kbd\u003e](https://sentry.io/careers/)_\n\n# Official Sentry SDK for Laravel\n\n[![CI](https://github.com/getsentry/sentry-laravel/actions/workflows/ci.yaml/badge.svg)](https://github.com/getsentry/sentry-laravel/actions/workflows/ci.yaml)\n[![Latest Stable Version](https://poser.pugx.org/sentry/sentry-laravel/v/stable)](https://packagist.org/packages/sentry/sentry-laravel)\n[![License](https://poser.pugx.org/sentry/sentry-laravel/license)](https://packagist.org/packages/sentry/sentry-laravel)\n[![Total Downloads](https://poser.pugx.org/sentry/sentry-laravel/downloads)](https://packagist.org/packages/sentry/sentry-laravel)\n[![Monthly Downloads](https://poser.pugx.org/sentry/sentry-laravel/d/monthly)](https://packagist.org/packages/sentry/sentry-laravel)\n[![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/cWnMQeA)\n\nThis is the official Laravel SDK for [Sentry](https://sentry.io).\n\n## Getting Started\n\nThe installation steps below work on versions 12.x and 11.x of the Laravel framework.\n\nFor older Laravel versions and Lumen see:\n\n- [Laravel 12.x \u0026 11.x](https://docs.sentry.io/platforms/php/guides/laravel/)\n- [Laravel 10.x \u0026 9.x \u0026 8.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel8-10/)\n- [Laravel 7.x \u0026 6.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel6-7/)\n- [Laravel 5.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel5/)\n- [Laravel 4.x](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/laravel4/)\n- [Lumen](https://docs.sentry.io/platforms/php/guides/laravel/other-versions/lumen/)\n\n### Install\n\nInstall the `sentry/sentry-laravel` package:\n\n```bash\ncomposer require sentry/sentry-laravel\n```\n\nEnable capturing unhandled exception to report to Sentry by making the following change to your `bootstrap/app.php`:\n\n```php {filename:bootstrap/app.php}\n\u003c?php\n\nuse Illuminate\\Foundation\\Application;\nuse Illuminate\\Foundation\\Configuration\\Exceptions;\nuse Illuminate\\Foundation\\Configuration\\Middleware;\nuse Sentry\\Laravel\\Integration;\n\nreturn Application::configure(basePath: dirname(__DIR__))\n    -\u003ewithRouting(\n        web: __DIR__.'/../routes/web.php',\n        commands: __DIR__.'/../routes/console.php',\n        health: '/up',\n    )\n    -\u003ewithMiddleware(function (Middleware $middleware) {\n        //\n    })\n    -\u003ewithExceptions(function (Exceptions $exceptions) {\n        Integration::handles($exceptions);\n    })-\u003ecreate();\n```\n\n\u003e Alternatively, you can configure Sentry as a [Laravel Log Channel](https://docs.sentry.io/platforms/php/guides/laravel/usage/#log-channels), allowing you to capture `info` and `debug` logs as well.\n\n### Configure\n\nConfigure the Sentry DSN with this command:\n\n```shell\nphp artisan sentry:publish --dsn=___PUBLIC_DSN___\n```\n\nIt creates the config file (`config/sentry.php`) and adds the `DSN` to your `.env` file.\n\n```shell {filename:.env}\nSENTRY_LARAVEL_DSN=___PUBLIC_DSN___\n```\n\n### Usage\n\n```php\nuse function Sentry\\captureException;\n\ntry {\n    $this-\u003efunctionThatMayFail();\n} catch (\\Throwable $exception) {\n    captureException($exception);\n}\n```\n\nTo learn more about how to use the SDK [refer to our docs](https://docs.sentry.io/platforms/php/guides/laravel/).\n\n## Laravel Version Compatibility\n\nThe Laravel and Lumen versions listed below are all currently supported:\n\n- Laravel `\u003e= 11.x.x` on PHP `\u003e= 8.2` is supported starting from `4.3.0`\n- Laravel `\u003e= 10.x.x` on PHP `\u003e= 8.1` is supported starting from `3.2.0`\n- Laravel `\u003e= 9.x.x` on PHP `\u003e= 8.0` is supported starting from `2.11.0`\n- Laravel `\u003e= 8.x.x` on PHP `\u003e= 7.3` is supported starting from `1.9.0`\n- Laravel `\u003e= 7.x.x` on PHP `\u003e= 7.2` is supported starting from `1.7.0`\n- Laravel `\u003e= 6.x.x` on PHP `\u003e= 7.2` is supported starting from `1.2.0`\n\nPlease note that starting with version `\u003e= 2.0.0` we require PHP Version `\u003e= 7.2` because we are using our new [PHP SDK](https://github.com/getsentry/sentry-php) underneath.\n\nThe Laravel versions listed below were supported in previous versions of the Sentry SDK for Laravel:\n\n- Laravel `\u003c= 4.2.x` is supported until `0.8.x`\n- Laravel `\u003c= 5.7.x` on PHP `\u003c= 7.0` is supported until `0.11.x`\n- Laravel `\u003e= 5.x.x` on PHP `\u003e= 7.1` is supported until `2.14.x`\n\n## Contributing to the SDK\n\nPlease refer to [CONTRIBUTING.md](CONTRIBUTING.md).\n\n### Thanks to all the people who contributed so far!\n\n\u003ca href=\"https://github.com/getsentry/sentry-laravel/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=getsentry/sentry-laravel\" /\u003e\n\u003c/a\u003e\n\n## Getting Help/Support\n\nIf you need help setting up or configuring the Laravel SDK (or anything else in the Sentry universe) please head over to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people in our Discord community ready to help you!\n\n## Resources\n\n- [![Documentation](https://img.shields.io/badge/documentation-sentry.io-green.svg)](https://docs.sentry.io/quickstart/)\n- [![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/Ww9hbqr)\n- [![Stack Overflow](https://img.shields.io/badge/stack%20overflow-sentry-green.svg)](http://stackoverflow.com/questions/tagged/sentry)\n- [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry\u0026style=social)](https://x.com/intent/follow?screen_name=sentry)\n\n## License\n\nLicensed under the MIT license, see [`LICENSE`](LICENSE).\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Uncategorized","PHP"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fsentry-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-laravel/lists"}