PHPackages                             itxrahulsingh/laravel-monitor - 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. itxrahulsingh/laravel-monitor

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

itxrahulsingh/laravel-monitor
=============================

Real-time monitoring for Laravel applications

v0.0.1-alpha(1y ago)21MITPHPPHP ^8.1

Since May 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/itxrahulsingh/laravel-monitor)[ Packagist](https://packagist.org/packages/itxrahulsingh/laravel-monitor)[ RSS](/packages/itxrahulsingh-laravel-monitor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Monitor
===============

[](#laravel-monitor)

A real-time monitoring package for Laravel applications, with server metrics (CPU, memory, disk usage) and a Livewire-powered dashboard.

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require itxrahulsingh/laravel-monitor
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --tag=laravel-monitor-config
    ```
3. Publish the migrations:

    ```
    php artisan vendor:publish --tag=laravel-monitor-migrations
    ```
4. Run the migrations to create the necessary database tables:

    ```
    php artisan migrate
    ```

Configuration
-------------

[](#configuration)

Edit `config/laravel-monitor.php` to customize monitoring settings, including:

- Recorders (e.g., requests, slow queries, exceptions, jobs, system metrics).
- Notification channels (e.g., email, Slack) and thresholds.
- Data retention periods.
- Dashboard settings (e.g., route, middleware, polling interval).

Example configuration:

```
return [
    'enabled' => env('MONITOR_ENABLED', true),
    'recorders' => [
        'requests' => ['enabled' => true, 'sample_rate' => 0.1],
        'slow_queries' => ['enabled' => true, 'threshold_ms' => 1000],
        'system' => ['enabled' => true, 'metrics' => ['cpu_usage', 'memory_usage', 'disk_usage']],
    ],
    'notifications' => [
        'channels' => [
            'email' => ['enabled' => true, 'to' => 'rahulsingh4041@gmail.com'],
        ],
    ],
    'dashboard' => [
        'route' => '/monitor',
        'middleware' => ['web', 'auth', 'can:view-monitor-dashboard'],
    ],
];
```

Usage
-----

[](#usage)

1. Access the dashboard at `/monitor` (ensure you're authenticated and authorized).
2. View real-time metrics, logs, charts, and alerts.
3. Schedule the data trimming command to manage database size:

    ```
    php artisan monitor:trim
    ```

    Add to `app/Console/Kernel.php` for daily execution:

    ```
    $schedule->command('monitor:trim')->daily();
    ```
4. Schedule system metrics collection:

    ```
    $schedule->call(function () {
        (new \Itxrahulsingh\LaravelMonitor\Recorders\SystemMetricsRecorder)->record();
    })->everyMinute();
    ```

Features
--------

[](#features)

- **Real-Time Monitoring**: Track HTTP requests, slow queries, exceptions, queue jobs, and server metrics (CPU, memory, disk).
- **Pulse-Like Data Storage**: Efficient database schema with values, entries, and aggregates.
- **Livewire Dashboard**: Displays cards, charts, logs, and alerts with real-time updates.
- **Notifications**: Configurable alerts via email, Slack, etc., for critical events.
- **Data Retention**: Automatic trimming of old data.
- **Extensibility**: Add custom recorders and dashboard widgets.

Testing
-------

[](#testing)

Run the included tests to verify functionality:

```
php artisan test
```

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

[](#contributing)

Contributions are welcome! Please:

1. Fork the repository.
2. Create a feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -m 'Add your feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a pull request on [GitHub](https://github.com/itxrahulsingh/laravel-monitor).

Issues
------

[](#issues)

Report bugs or request features by opening an issue on [GitHub](https://github.com/itxrahulsingh/laravel-monitor).

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](https://github.com/itxrahulsingh/laravel-monitor/security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

MIT License

Copyright (c) 2025 Rahul Singh

See the [LICENSE](LICENSE) file for details.

Contact
-------

[](#contact)

For support, contact Rahul Singh at .

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/205f977460a967d705e5da97da8cd003d2cb969c5b6db7e57cfa33c189c82003?d=identicon)[itxrahulsingh](/maintainers/itxrahulsingh)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/itxrahulsingh-laravel-monitor/health.svg)

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

###  Alternatives

[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)

PHPackages © 2026

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