PHPackages                             malzariey/production-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. malzariey/production-debugbar

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

malzariey/production-debugbar
=============================

Use Debugbar in Production for performance analysis and fast debugging

1.2.1(5mo ago)64081MITPHPCI passing

Since May 13Pushed 2w ago1 watchersCompare

[ Source](https://github.com/malzariey/production-debugbar)[ Packagist](https://packagist.org/packages/malzariey/production-debugbar)[ Docs](https://github.com/malzariey/production-debugbar)[ GitHub Sponsors]()[ RSS](/packages/malzariey-production-debugbar/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (4)Versions (16)Used By (0)

Use Debugbar in Production for performance analysis and fast debugging
======================================================================

[](#use-debugbar-in-production-for-performance-analysis-and-fast-debugging)

[![Latest Version on Packagist](https://camo.githubusercontent.com/83480edc7df965886da64a4dfdc89fc08a037b637205398200b878a459587414/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616c7a61726965792f70726f64756374696f6e2d64656275676261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/malzariey/production-debugbar)[![Total Downloads](https://camo.githubusercontent.com/b60bb87206cf556373e21bbfae4720583dca336deb979ebb2985e36c61fe5d9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616c7a61726965792f70726f64756374696f6e2d64656275676261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/malzariey/production-debugbar)

This package enables the powerful Laravel Debugbar for safe and effective use in production environments. It allows developers to gain valuable insights into application performance, database queries, and request lifecycle without compromising security or negatively impacting the user experience. Utilize this tool for fast debugging and performance analysis directly on your live application.

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

[](#installation)

You can install the package via composer:

```
composer require malzariey/production-debugbar --dev
```

You can publish the config file with:

```
php artisan vendor:publish --tag="production-debugbar-config"
```

This is the contents of the published config file, showing the default query parameter and password used for enabling the Debugbar:

```
return [
    "password" => env("PRODUCTION_DEBUGBAR_PASSWORD", "MyPassword"),
    "get_parameter" => env("PRODUCTION_DEBUGBAR_GET_PARAMETER", 'pd_debug'),
];
```

**Note**:

Make sure to add PRODUCTION\_DEBUGBAR\_PASSWORD to your .env file if you want to change the password configuration.

Usage
-----

[](#usage)

This package provides a middleware that automatically checks if the Laravel Debugbar should be enabled based on a request cookie. You can enable the Debugbar on any route by adding a query parameter with a specific password that matches the one configured in your `production-debugbar-config` file.

### Customizing the Query Parameter

[](#customizing-the-query-parameter)

By default, the query parameter used to enable the Debugbar is configurable via the `production-debugbar.get_parameter` config option. This allows you to choose a custom parameter name instead of using the password directly as the parameter key.

For example, if your config contains:

```
return [
    "password" => env("PRODUCTION_DEBUGBAR_PASSWORD", "MyPassword"),
    "get_parameter" => env("PRODUCTION_DEBUGBAR_GET_PARAMETER", 'pd_debug'),
];
```

You can enable the Debugbar by visiting:

```
https://your-production-app.com/any-route?pd_debug=MyPassword

```

Replace `pd_debug` with your configured parameter name, and `MyPassword` with your configured password.

If you do not set `get_parameter`, the default parameter name will be used as defined in the package.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Majid Al Zariey](https://github.com/malzariey)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance86

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.3% 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 ~65 days

Total

5

Last Release

153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94e7a69eedc06b2f4531e69ca24c2d6752fa8b1cd0a29ddd465a91dec5d7eeaa?d=identicon)[malzariey](/maintainers/malzariey)

---

Top Contributors

[![malzariey](https://avatars.githubusercontent.com/u/35528749?v=4)](https://github.com/malzariey "malzariey (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![husam-tariq](https://avatars.githubusercontent.com/u/16601695?v=4)](https://github.com/husam-tariq "husam-tariq (1 commits)")

---

Tags

laravelMajid Al Zarieyproduction-debugbar

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/malzariey-production-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/malzariey-production-debugbar/health.svg)](https://phpackages.com/packages/malzariey-production-debugbar)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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