PHPackages                             adeel3330/insight-guard - 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. [Security](/categories/security)
4. /
5. adeel3330/insight-guard

ActiveLibrary[Security](/categories/security)

adeel3330/insight-guard
=======================

All-in-one Laravel security, performance, and database optimization analyzer.

v1.0.4(3mo ago)03↓90.9%MITPHPPHP ^8.1 | ^8.2 | ^8.3 | ^8.4 | ^8.5CI passing

Since Mar 31Pushed 3mo agoCompare

[ Source](https://github.com/Adeel3330/insight-guard)[ Packagist](https://packagist.org/packages/adeel3330/insight-guard)[ RSS](/packages/adeel3330-insight-guard/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Insight Guard for Laravel
-------------------------

[](#insight-guard-for-laravel)

### Laravel wrapper for [Insight Guard](https://github.com/adeel3330/insight-guard)

[](#laravel-wrapper-for-insight-guard)

[![Tests](https://github.com/adeel3330/insight-guard/actions/workflows/run-test.yml/badge.svg)](https://github.com/adeel3330/insight-guard/actions)

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

[](#installation)

### Laravel

[](#laravel)

Require the package via composer:

```
composer require adeel3330/insight-guard

```

Publish views &amp; config (optional, for customizing the dashboard):

```
php artisan vendor:publish --tag=views
php artisan vendor:publish --tag=config

```

Features
--------

[](#features)

### Security Analysis

[](#security-analysis)

- Detect controllers with missing validation
- Detect routes without authentication/middleware
- Warn about sensitive data exposure

### Performance Analysis

[](#performance-analysis)

- Detect N+1 queries and suggest eager loading
- Suggest caching opportunities (response, model, query)
- Analyze query execution times and recommend indexes

### Database &amp; Model Suggestions

[](#database--model-suggestions)

- Detect unused columns or tables
- Suggest missing indexes or relationships
- Detect potential data integrity issues

### Code &amp; Config Optimization

[](#code--config-optimization)

- Suggest route caching, config caching, and middleware improvements
- Detect slow boot services and heavy providers
- Actionable suggestions for developers

Using the Dashboard
-------------------

[](#using-the-dashboard)

Visit the web dashboard in your browser:

`https://yourapp.test/insightguard`

Export reports in PDF or JSON:

PDF export
==========

[](#pdf-export)

`https://yourapp.test/insightguard/export/pdf`

JSON export
===========

[](#json-export)

`https://yourapp.test/insightguard/export/json`

Example Usage in Controllers
----------------------------

[](#example-usage-in-controllers)

```
use Adeel3330\InsightGuard\Services\{
    RequestInspector,
    ModelAnalyzer,
    CodeOptimizer
};

// Inspect requests for validation, security, and performance issues
$issues = (new RequestInspector())->inspect($request);

// Analyze a model for DB suggestions
$modelIssues = (new ModelAnalyzer())->analyzeModel(new \App\Models\User());

// Analyze routes & controllers for code optimization
$codeIssues = (new CodeOptimizer())->analyzeRoutes();
Configuration (Optional)
// config/insightguard.php
return [
    'dashboard_prefix' => 'insightguard',
    'auth_middleware' => ['web', 'auth'],
    'export_pdf' => true,
    'export_json' => true,
    'modules' => [
        'security' => true,
        'performance' => true,
        'database' => true,
        'code' => true,
    ],
];
```

Publish config:
---------------

[](#publish-config)

```
php artisan vendor:publish --tag=config
```

Folder Structure
----------------

[](#folder-structure)

`` app/ └── GraphQL/ └── Resolvers/ vendor/ └── adeel3330/insight-guard/ ├── src/ │ ├── Services/ │ ├── Helpers/ │ └── Dashboard/ └── routes/web.php

``

Philosophy
----------

[](#philosophy)

- Minimal, Laravel-style developer experience
- Actionable suggestions for security, performance, and DB
- Easy to integrate into any Laravel project
- No heavy dependencies

License
-------

[](#license)

MIT License – Open-source software. See MIT License

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance82

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

3

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec07a5f728e21e84233fcc5a42ccee366d465c99a968f294f81c0523ee27ce9?d=identicon)[Adeel3330](/maintainers/Adeel3330)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/adeel3330-insight-guard/health.svg)

```
[![Health](https://phpackages.com/badges/adeel3330-insight-guard/health.svg)](https://phpackages.com/packages/adeel3330-insight-guard)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9230.4M311](/packages/illuminate-encryption)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)

PHPackages © 2026

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