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(3mo ago)64061[2 PRs](https://github.com/malzariey/production-debugbar/pulls)MITPHPCI passing

Since May 13Pushed 1mo 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 1mo ago

READMEChangelog (4)Dependencies (4)Versions (12)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

43

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

98d 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 (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 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

[stephenjude/filament-debugger

About

102125.4k2](/packages/stephenjude-filament-debugger)[spatie/laravel-error-solutions

Display solutions on the Laravel error page

9773.5k](/packages/spatie-laravel-error-solutions)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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