PHPackages                             pyaesone17/lapse - 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. pyaesone17/lapse

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

pyaesone17/lapse
================

2.0.8(7y ago)1741.3k13[1 issues](https://github.com/pyaesone17/lapse/issues)[1 PRs](https://github.com/pyaesone17/lapse/pulls)MITPHPPHP ~7.0

Since Oct 13Pushed 7y ago5 watchersCompare

[ Source](https://github.com/pyaesone17/lapse)[ Packagist](https://packagist.org/packages/pyaesone17/lapse)[ Docs](https://github.com/pyaesone17/lapse)[ RSS](/packages/pyaesone17-lapse/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (18)Used By (0)

[![Example](https://raw.githubusercontent.com/pyaesone17/lapse/master/lapse_v2.0.8.1.png)](https://raw.githubusercontent.com/pyaesone17/lapse/master/lapse_v2.0.8.1.png)

Introducing
-----------

[](#introducing)

Lapse provides a beautiful dashboard to track your errors in production without having to look up log file. Moreover it can notify you via Slack channel and Email alert. And moreover it can notify you via all of the channels from .

Lapse behind the scence depend on . It means theoretically Lapses can notify your error via over 30 ways including **Slack, Email, Nexmo, Trello, Telegram, Facebook, Discord, Pusher, Twillo, Twitte**. But I haven't test agaisnt all of the channels, If you find a bug, please submit an issue. If you want to know more, please kindly check the link.

For old version please see documentation at

Upgrade Guide
-------------

[](#upgrade-guide)

If you are upgrading from version 1.

Please delete config/lapse.php file first.

Install
-------

[](#install)

Install Via Composer

```
$ composer require pyaesone17/lapse
```

Publish vendor

```
$ php artisan vendor:publish
```

Add slack hook url in config/lapse.php and define channels (  )

```
    'channels' => [
        'slack' => 'https://hooks.slack.com/services/......',
        'mail' => 'your@mail.com'
    ],
    // Currently two notification channels supported
    // Those are slack and email
    // But you can use all of the notifications from http://laravel-notification-channels.com/
    // See the custom channel of my read me file to explore how to integrate
    'via' => ['slack']
```

```
$ php artisan vendor:publish
```

Migrate lapses table

```
php artisan migrate
```

Usage
-----

[](#usage)

after that register In the report method of App\\Exceptions\\Handler like this.

```
    use Pyaesone17\Lapse\ErrorNotifiable;
    ..

    class Handler extends ExceptionHandler
    {
        use ErrorNotifiable;
        ...

        public function report(Exception $exception)
        {
            if( app()->environment()!='local' ){ // Remove this line if you want lapse to notify in local environment
                $this->sendNotification($exception);
            }
        }
        ...
    }
```

Laravel Lapse's dashboard is inspired by Laravel Horizon. Just like Horizon you can configure authentication to Lapse's dashboard. Add the following to the boot method of your AppServiceProvider. Here you could also check role permision and limit the dasboard.

```
    \Pyaesone17\Lapse\Lapse::auth(function($request) {
        // return true / false . For e.g.
        return \Auth::check();
    });
```

To view the dashboard point your browser to /lapse of your app. For e.g. `laravel.dev/lapse`. But the app is in local environment, lapse will not even attend to validate auth, It will display it all.

To delete all lapse message via cli , please run

```
$ php artisan clear:lapse
```

Custom Notification Channel
---------------------------

[](#custom-notification-channel)

you can use all notifications from  to integrate with lapse

For example, Telegram

install channel via composer

```
    $ composer require laravel-notification-channels/telegram
```

configure the config/lapse.php first

```
    use NotificationChannels\Telegram\TelegramChannel;
    'channels' => [
        'slack' => 'https://hooks.slack.com/services/......',
        'telegram' => 'tele_gram_user_id', //optional
    ],
    // Currently two notification channels is supported built in
    // Those are slack and email
    'via' => ['slack', TelegramChannel::class]
```

register telegram provider

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Telegram\TelegramServiceProvider::class,
],
```

Set credentials

```
    // config/services.php
    'telegram-bot-api' => [
        'token' => env('TELEGRAM_BOT_TOKEN', 'YOUR BOT TOKEN HERE')
    ],
```

Add the formatter for notificaiton

```
    use NotificationChannels\Telegram\TelegramMessage;
    use Pyaesone17\Lapse\ErrorNotifiable;
    ..

    class Handler extends ExceptionHandler
    {
        use ErrorNotifiable;
        ...

        public function report(Exception $exception)
        {
            if( app()->environment()!='local' ){ // Remove this line if you want lapse to notify in local environment
                $this->sendNotification($exception, $this->getFormatters());
            }
        }

        protected function getFormatters()
        {
            $formatters = array(
                'toTelegram' => function($notifiable) {
                    return TelegramMessage::create()
                    ->content("*HELLO!* \n One of your invoices has been paid!");
                }
            );

            return $formatters;
        }
        ...
    }
```

New Feature
-----------

[](#new-feature)

If you want new feature, feel free to submit as an issue

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

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

Every ~19 days

Recently: every ~6 days

Total

17

Last Release

2874d ago

Major Versions

v1.x-dev → 2.0.02018-07-22

PHP version history (2 changes)1.0.0PHP ~5.6|~7.0

1.0.1PHP ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b26ece37ce14b1b12f7b2048da1606b12c25a612fbcdd5c02db578354b633007?d=identicon)[pyaesone17](/maintainers/pyaesone17)

---

Top Contributors

[![nyanwin](https://avatars.githubusercontent.com/u/7732452?v=4)](https://github.com/nyanwin "nyanwin (29 commits)")[![pyaesone17](https://avatars.githubusercontent.com/u/11407146?v=4)](https://github.com/pyaesone17 "pyaesone17 (16 commits)")[![setkyar](https://avatars.githubusercontent.com/u/4435358?v=4)](https://github.com/setkyar "setkyar (1 commits)")[![yusefarianpour](https://avatars.githubusercontent.com/u/479012?v=4)](https://github.com/yusefarianpour "yusefarianpour (1 commits)")

---

Tags

error-reportingerror-trackinglarave-errorlaravellaravel-5-packagelapsepyaesone17

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pyaesone17-lapse/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.0M603](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)

PHPackages © 2026

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