PHPackages                             logsentrydev/logsentry-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. logsentrydev/logsentry-laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

logsentrydev/logsentry-laravel
==============================

LogSentry integration for Laravel

v0.0.1(1y ago)025[4 PRs](https://github.com/logsentrydev/logsentry-laravel/pulls)MITPHPPHP ^8.2||^8.3||^8.4CI passing

Since Feb 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/logsentrydev/logsentry-laravel)[ Packagist](https://packagist.org/packages/logsentrydev/logsentry-laravel)[ Docs](https://github.com/logsentrydev/logsentrydev)[ GitHub Sponsors](https://github.com/xqus)[ RSS](/packages/logsentrydev-logsentry-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (14)Versions (7)Used By (0)

LogSentry for Laravel
=====================

[](#logsentry-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a4843aa7a39db0f89f939f0352c756335a909a2d18bdcacf0de29748ee1b8ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6773656e7472796465762f6c6f6773656e7472792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/logsentrydev/logsentry-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/90f9af2bac6ce5182135a7f1b9d574c9447d0e01db872b88de067e647d36e055/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6773656e7472796465762f6c6f6773656e7472792d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/logsentrydev/logsentry-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4589841164f274c560f5872225d32def6fd61019cc6818d1898dfa4cf393190a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6773656e7472796465762f6c6f6773656e7472792d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/logsentrydev/logsentry-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c6d0aac1a7b3e17003be9bec63f7605574d53d91536a45080ee54dc5c5baca21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6773656e7472796465762f6c6f6773656e7472792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/logsentrydev/logsentry-laravel)

[LogSentry.dev](https://logsentry.dev) 👋
----------------------------------------

[](#logsentrydev-)

*Effortless log management—store, search, and secure your logs with ease!*

Effortlessly collect, monitor, and secure your logs in real time—we store them for you! Search live data, get full audit context, and safely archive logs with encryption. Need old logs? Restore them in a click! 🚀🔎🔒

Important

You’ll need [an account](https://logsentry.dev) and API key to get started—sign up and start logging in minutes! 🔑🚀

Features
--------

[](#features)

- 🚀 Seamless Log Collection – Easily gather logs from any app that can send a POST request. No complex setup required!
- 🔎 Real-Time Search &amp; Monitoring – Instantly filter, search, and track your logs as they happen. Stay ahead of issues before they escalate!
- 🛡️ Complete Audit Trail – Collect valuable context with every log entry, making audits and debugging a breeze.
- 🔒 Secure Log Archiving – Encrypt and store old logs safely, ensuring compliance and long-term accessibility.
- ♻️ Instant Log Restoration – Need past logs? Restore them from the archive anytime with just a few clicks!

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require logsentrydev/logsentry-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="logsentry-config"
```

This is the contents of the published config file:

```
return [
    'secret' => env('LOGSENTRY_SECRET'),
    'endpoint' => env('LOGSENTRY_ENDPOINT', 'https://logsentry.dev/api/v1/event'),
];
```

Usage
-----

[](#usage)

Note

In order to use this package you need a free [LogSentry](https://logsentry.dev) account. You also need to create an API key under your account.

1. Add the following to the `channels` key in your `config/logging.php` file

```
use LogSentry\Laravel\LogSentryLogHandler;

...

'channels' => [
    'logsentry' => [
        'driver'  => 'monolog',
        'handler' => LogSentryLogHandler::class,
        'with' => [
        ],
    ],

    ....
],
```

2. Set your logging channel to `logsentry` in your `.env` file.

```
LOG_CHANNEL=logsentry

```

3. Add your API key to your .env file. For example:

```
LOGSENTRY_SECRET="1|APl3KOP8vKDRuNS2SwvCEjn3whO6lXWODlPOz9b44e9daf29"

```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

491d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203013?v=4)[Audun](/maintainers/xqus)[@xqus](https://github.com/xqus)

---

Top Contributors

[![xqus](https://avatars.githubusercontent.com/u/203013?v=4)](https://github.com/xqus "xqus (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelLogSentrylogsentry-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/logsentrydev-logsentry-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/logsentrydev-logsentry-laravel/health.svg)](https://phpackages.com/packages/logsentrydev-logsentry-laravel)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
