PHPackages                             hashcrypttech/hashguardian - 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. hashcrypttech/hashguardian

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

hashcrypttech/hashguardian
==========================

Self-hosted monitoring and observability dashboard for Laravel applications

v1.0.0(2mo ago)01MITBladePHP ^8.2

Since Mar 2Pushed 2mo agoCompare

[ Source](https://github.com/hashcrypttech/HashGuardian)[ Packagist](https://packagist.org/packages/hashcrypttech/hashguardian)[ Docs](https://github.com/hashcrypttech/HashGuardian)[ RSS](/packages/hashcrypttech-hashguardian/feed)WikiDiscussions main Synced 1mo ago

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

HashGuardian
============

[](#hashguardian)

Self-hosted monitoring and observability dashboard for Laravel applications. Track requests, queries, exceptions, jobs, and more — all within your own infrastructure.

Screenshots
-----------

[](#screenshots)

### Server Monitoring

[](#server-monitoring)

[![Server Monitoring](screenshots/server-monitoring.png)](screenshots/server-monitoring.png)

### Htop Monitor

[](#htop-monitor)

[![Htop Monitor](screenshots/htop-monitor.png)](screenshots/htop-monitor.png)

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.x or 12.x

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

[](#installation)

Install the package via Composer:

```
composer require hashcrypttech/hashguardian
```

The service provider and facade are auto-discovered by Laravel. No manual registration is needed.

Run the install command to publish the config, migrations, and assets:

```
php artisan hashguardian:install
```

This will:

- Publish the `config/hashguardian.php` configuration file
- Publish the `HashGuardianServiceProvider` to `app/Providers/`
- Publish frontend assets to `public/vendor/hashguardian/`
- Run database migrations

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

[](#configuration)

After installation, configure HashGuardian via `config/hashguardian.php` or environment variables:

```
HASHGUARDIAN_ENABLED=true
HASHGUARDIAN_PATH=hashguardian
HASHGUARDIAN_DB_CONNECTION=mysql
HASHGUARDIAN_PRUNE_HOURS=72
```

### Authorization

[](#authorization)

By default, the HashGuardian dashboard is only accessible in the `local` environment. To configure access in production, define the `viewHashGuardian` gate in your `App\Providers\HashGuardianServiceProvider`:

```
use Hashcrypttech\HashGuardian\Facades\HashGuardian;

HashGuardian::auth(function ($request) {
    return in_array($request->user()?->email, [
        'admin@example.com',
    ]);
});
```

Dashboard
---------

[](#dashboard)

Access the monitoring dashboard at:

```
https://your-app.com/hashguardian

```

Watchers
--------

[](#watchers)

HashGuardian includes 20 built-in watchers that can be individually enabled/disabled:

WatcherDescriptionEnv Variable**RequestWatcher**HTTP requests and response times`HASHGUARDIAN_REQUEST_WATCHER`**QueryWatcher**Database queries with slow query detection`HASHGUARDIAN_QUERY_WATCHER`**ExceptionWatcher**Exceptions with stack traces`HASHGUARDIAN_EXCEPTION_WATCHER`**JobWatcher**Queue jobs`HASHGUARDIAN_JOB_WATCHER`**OutgoingRequestWatcher**Outgoing HTTP calls`HASHGUARDIAN_OUTGOING_REQUEST_WATCHER`**CacheWatcher**Cache hits, misses, writes`HASHGUARDIAN_CACHE_WATCHER`**MailWatcher**Sent emails`HASHGUARDIAN_MAIL_WATCHER`**NotificationWatcher**Notifications`HASHGUARDIAN_NOTIFICATION_WATCHER`**CommandWatcher**Artisan commands`HASHGUARDIAN_COMMAND_WATCHER`**ScheduleWatcher**Scheduled tasks`HASHGUARDIAN_SCHEDULE_WATCHER`**LogWatcher**Log entries`HASHGUARDIAN_LOG_WATCHER`**ActivityWatcher**User activity tracking`HASHGUARDIAN_ACTIVITY_WATCHER`**BatchWatcher**Batch operations`HASHGUARDIAN_BATCH_WATCHER`**DumpWatcher**`dump()` / `dd()` output`HASHGUARDIAN_DUMP_WATCHER`**EventWatcher**Laravel events`HASHGUARDIAN_EVENT_WATCHER`**GateWatcher**Authorization checks`HASHGUARDIAN_GATE_WATCHER`**ModelWatcher**Eloquent model events`HASHGUARDIAN_MODEL_WATCHER`**RedisWatcher**Redis operations`HASHGUARDIAN_REDIS_WATCHER`**ViewWatcher**View rendering`HASHGUARDIAN_VIEW_WATCHER`Custom Metrics
--------------

[](#custom-metrics)

Track custom business metrics in your application:

```
use Hashcrypttech\HashGuardian\Facades\HashGuardian;

// Count events
HashGuardian::count('orders.placed');

// Record numeric metrics
HashGuardian::metric('payment.amount', 99.99);

// Time operations
HashGuardian::startTimer('api.call');
// ... your code ...
HashGuardian::stopTimer('api.call');
```

API Access
----------

[](#api-access)

Enable the REST API for programmatic access:

```
HASHGUARDIAN_API_ENABLED=true
```

Create API tokens:

```
php artisan hashguardian:token create "My Token"
```

Artisan Commands
----------------

[](#artisan-commands)

CommandDescription`hashguardian:install`Install the package (publish config, migrations, assets)`hashguardian:publish`Publish/update frontend assets`hashguardian:prune`Remove old entries`hashguardian:clear`Clear all recorded data`hashguardian:pause`Temporarily pause recording`hashguardian:resume`Resume recording`hashguardian:monitor`Start server metrics collection (long-running)`hashguardian:aggregate`Build metric aggregates for trends`hashguardian:token`Manage API tokens`hashguardian:stats`Display summary statistics`hashguardian:tail`Live-tail entries in the terminal`hashguardian:report`Generate a summary reportScheduled Tasks
---------------

[](#scheduled-tasks)

Add these to your `routes/console.php` or scheduler:

```
use Illuminate\Support\Facades\Schedule;

Schedule::command('hashguardian:prune')->daily();
Schedule::command('hashguardian:aggregate')->hourly();
```

Server Monitoring
-----------------

[](#server-monitoring-1)

Enable server resource monitoring (CPU, RAM, disk, network):

```
HASHGUARDIAN_SERVER_MONITORING=true
```

Run the monitor as a background process:

```
php artisan hashguardian:monitor
```

Publishing Assets
-----------------

[](#publishing-assets)

To update assets after a package update:

```
php artisan hashguardian:publish
```

Or use vendor:publish with tags:

```
php artisan vendor:publish --tag=hashguardian-config
php artisan vendor:publish --tag=hashguardian-assets
php artisan vendor:publish --tag=hashguardian-provider
```

About
-----

[](#about)

HashGuardian is developed and maintained by [Hashcrypt Technologies Pvt. Ltd.](https://hashcrypt.com/), a software development company based in Rajkot, Gujarat, India.

- **Website:**
- **Email:**
- **Phone:** +91 90332 72899
- **Address:** 3rd Floor, United Square, Nana Mava Rd, Karan Park, Rajkot, Gujarat 360001

License
-------

[](#license)

HashGuardian is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

78d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49a3fa6b20a8a1a51199b2fc4b4d3e5bb86c43f717f9360476d6027a746e9474?d=identicon)[hashcryptdevs](/maintainers/hashcryptdevs)

---

Top Contributors

[![kalpak-hashcrypt](https://avatars.githubusercontent.com/u/153890965?v=4)](https://github.com/kalpak-hashcrypt "kalpak-hashcrypt (5 commits)")

---

Tags

laravelloggingmonitoringperformancedebuggingdashboardobservabilitytelescope-alternative

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hashcrypttech-hashguardian/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

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