PHPackages                             maksimru/conditional-laravel-debugbar - 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. maksimru/conditional-laravel-debugbar

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

maksimru/conditional-laravel-debugbar
=====================================

Allows to boot laravel debug bar conditionally

v0.13(7y ago)06.3kMITPHPPHP &gt;=7

Since Aug 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/maksimru/conditional-laravel-debugbar)[ Packagist](https://packagist.org/packages/maksimru/conditional-laravel-debugbar)[ RSS](/packages/maksimru-conditional-laravel-debugbar/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (13)Versions (8)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c2b75e63518e969008e24789e7617f75b0cd3ff837fe16fc98fc11564d0ea415/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616b73696d72752f636f6e646974696f6e616c2d6c61726176656c2d64656275676261722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/maksimru/conditional-laravel-debugbar/?branch=master)[![codecov](https://camo.githubusercontent.com/4a3cfcc5030ac02636363a6488ee6c78c03f6dd695d284821ffbc371ae510859/68747470733a2f2f636f6465636f762e696f2f67682f6d616b73696d72752f636f6e646974696f6e616c2d6c61726176656c2d64656275676261722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/maksimru/conditional-laravel-debugbar)[![StyleCI](https://camo.githubusercontent.com/f0a478fd191c28aaf05627dfea599e3bc43ebde0ed3f0f5f301f15bcd102ef54/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134333337363239312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/143376291)[![CircleCI](https://camo.githubusercontent.com/148c98a4b7104320ed4e35abcf8d4cd811d2bf8320c72e389e54debec0f93108/68747470733a2f2f636972636c6563692e636f6d2f67682f6d616b73696d72752f636f6e646974696f6e616c2d6c61726176656c2d64656275676261722e7376673f7374796c653d737667)](https://circleci.com/gh/maksimru/conditional-laravel-debugbar)

About
-----

[](#about)

Allows to boot laravel-debugbar with custom conditions instead of APP\_DEBUG and environment You are free to use \\Auth::check(), custom headers, custom parameters or anything you wish

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

[](#installation)

```
composer require maksimru/conditional-laravel-debugbar
```

Usage
-----

[](#usage)

1. Publish config file with

```
php artisan vendor:publish
```

2. Create new boot validator implementing \\MaksimM\\ConditionalDebugBar\\Interfaces\\DebugModeChecker interface
3. Replace validator class in config/conditional-debugbar.php in debugbar-boot-validator (See provided example for more details)
4. Add \\MaksimM\\ConditionalDebugBar\\Http\\Middleware\\OptionalDebugBar::class middleware on routes where you wish to use the debugbar

---

Thanks to barryvdh for awesome barryvdh/laravel-debugbar

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~7 days

Total

4

Last Release

2819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63cc6faebcb18058c9ee5d08d7a8a3ad32a29d94ae94695cd3820f4ee6005c00?d=identicon)[maksimru](/maintainers/maksimru)

---

Top Contributors

[![martianoff](https://avatars.githubusercontent.com/u/7222812?v=4)](https://github.com/martianoff "martianoff (13 commits)")

---

Tags

laraveldebugbarconditional

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maksimru-conditional-laravel-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/maksimru-conditional-laravel-debugbar/health.svg)](https://phpackages.com/packages/maksimru-conditional-laravel-debugbar)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[laravel/pulse

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

1.7k12.1M99](/packages/laravel-pulse)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[spatie/laravel-ray

Easily debug Laravel apps

31538.4M2.8k](/packages/spatie-laravel-ray)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)

PHPackages © 2026

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