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. logsentrydev/logsentry-laravel

ActiveLibrary

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 1mo 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 1mo ago

READMEChangelog (1)Dependencies (14)Versions (6)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

36

—

LowBetter than 82% of packages

Maintenance71

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

436d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef7041fb7af3d0830fea42bb692f392eda85f73674de5e6e6d55175a90685879?d=identicon)[xqus](/maintainers/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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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