PHPackages                             webxscripts/lyra - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. webxscripts/lyra

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

webxscripts/lyra
================

Handle hidden exceptions and send notify

1.0.8(3y ago)24MITPHPPHP ^8.0

Since Jan 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/WebXScripts/Lyra)[ Packagist](https://packagist.org/packages/webxscripts/lyra)[ Docs](https://github.com/webxscripts/lyra)[ RSS](/packages/webxscripts-lyra/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Lyra
====

[](#lyra)

[![Latest Version on Packagist](https://camo.githubusercontent.com/23052c8ed7bcbaaca82b9d5efafe60932a27eae951ea73834f864e50874ca429/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77656278736372697074732f6c7972612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webxscripts/lyra)[![Total Downloads](https://camo.githubusercontent.com/71be2932a64efd52be37742d58e84cc4dcfc8c5ad76e21f8faef412e9c094f77/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77656278736372697074732f6c7972612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webxscripts/lyra)

Send notifications about Laravel exceptions to Slack.

This is my first package, so please let me know if you have any suggestions or feedback, I will be happy to hear them.

Also, I want to add more features to this package (like Discord support), so if you have any ideas, please let me know.

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

[](#installation)

You can install the package via composer:

```
composer require webxscripts/lyra
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="config"
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="lang"
```

*Remember to set your Slack webhook URL in the config file!*

*Add following line in `app/Exceptions/Handler.php` file:*

```
private Lyra $lyra;

public function __construct(..., Lyra $lyra)
{
    //...,
    $this->lyra = $lyra;
}

public function report(Throwable $e): void
{
    $this->lyra->handle($e, Request::capture());
}
```

Now on error, you will get notification on your Slack channel:

[![Slack Notification](https://camo.githubusercontent.com/046c03e728f5ce79b0f40f3644bd44e13adf733fa2b3d21c54b9fd0a46850c4f/68747470733a2f2f692e696d6775722e636f6d2f61626f616f71312e706e67)](https://camo.githubusercontent.com/046c03e728f5ce79b0f40f3644bd44e13adf733fa2b3d21c54b9fd0a46850c4f/68747470733a2f2f692e696d6775722e636f6d2f61626f616f71312e706e67)

You can modify the notification message as per your need.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Piotr WebX Paluszkievvicz](https://github.com/webxscripts)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Thanks to
---------

[](#thanks-to)

- [Laravel Package Boilerplate](https://laravelpackageboilerplate.com) for the great package boilerplate.
- [Spatie](https://spatie.be/) for some code used in this package.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1233d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/277d94fb26f992bd00d4f1b755bc795f98d634278baf19b6a746973b2e800e3d?d=identicon)[WebXScripts](/maintainers/WebXScripts)

---

Top Contributors

[![WebXScripts](https://avatars.githubusercontent.com/u/46284084?v=4)](https://github.com/WebXScripts "WebXScripts (4 commits)")

---

Tags

error-handlinglaravelnotificationslyrawebxscripts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webxscripts-lyra/health.svg)

```
[![Health](https://phpackages.com/badges/webxscripts-lyra/health.svg)](https://phpackages.com/packages/webxscripts-lyra)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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