PHPackages                             benjaminhu/laravel-app-debug-dynamic - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. benjaminhu/laravel-app-debug-dynamic

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

benjaminhu/laravel-app-debug-dynamic
====================================

Enabling Laravel APP\_DEBUG dynamically in production environment

1.0.0(4y ago)3153[1 issues](https://github.com/Benjaminhu/laravel-app-debug-dynamic/issues)MITPHPPHP &gt;=8.0

Since Jul 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Benjaminhu/laravel-app-debug-dynamic)[ Packagist](https://packagist.org/packages/benjaminhu/laravel-app-debug-dynamic)[ RSS](/packages/benjaminhu-laravel-app-debug-dynamic/feed)WikiDiscussions main Synced 1w ago

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

Dynamic enable APP\_DEBUG via COOKIE &amp; IP
=============================================

[](#dynamic-enable-app_debug-via-cookie--ip)

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

[](#installation)

You can install the package via composer:

```
$ composer require benjaminhu/laravel-app-debug-dynamic
```

Usage
-----

[](#usage)

Simply register the newly created class in your (top of) middleware stack.

```
// app/Http/Kernel.php
class Kernel extends HttpKernel
{
    protected $middleware = [
        \Benjaminhu\LaravelAppDebugDynamic\AppDebugDynamicMiddleware::class,
        // ...
    ];
    // ...
}
```

Publish config:

```
$ php artisan vendor:publish --provider="Benjaminhu\LaravelAppDebugDynamic\AppDebugDynamicServiceProvider"
```

Setup .env (remember: in **production** mode alway set: `APP_DEBUG=false`!):

```
# ...
APP_DEBUG=false
APP_DEBUG_DYNAMIC_COOKIE_NAME=
APP_DEBUG_DYNAMIC_COOKIE_SECRET=
# optional
# APP_DEBUG_DYNAMIC_ALLOWED_IPS=
# ...
```

Testing
-------

[](#testing)

```
$ composer test
```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1507d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/163124?v=4)[Simon Benjámin](/maintainers/Benjaminhu)[@Benjaminhu](https://github.com/Benjaminhu)

---

Top Contributors

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

---

Tags

requestmiddlewarelaraveldebugapp debug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/benjaminhu-laravel-app-debug-dynamic/health.svg)

```
[![Health](https://phpackages.com/badges/benjaminhu-laravel-app-debug-dynamic/health.svg)](https://phpackages.com/packages/benjaminhu-laravel-app-debug-dynamic)
```

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M227](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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