PHPackages                             percymamedy/laravel-dev-booter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. percymamedy/laravel-dev-booter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

percymamedy/laravel-dev-booter
==============================

Boost your Laravel app by registering Prod services only on Prod.

v5.0.0(1y ago)35345.8k↑13%7[1 PRs](https://github.com/percymamedy/laravel-dev-booter/pulls)1MITPHPPHP ^8.2CI failing

Since Oct 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/percymamedy/laravel-dev-booter)[ Packagist](https://packagist.org/packages/percymamedy/laravel-dev-booter)[ RSS](/packages/percymamedy-laravel-dev-booter/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (1)

 [![](https://raw.githubusercontent.com/LaraChimp/art-work/master/packages/dev-booter/dev-booter-art.png)](https://raw.githubusercontent.com/LaraChimp/art-work/master/packages/dev-booter/dev-booter-art.png) Laravel dev booter
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#----laravel-dev-booter)

 [![Latest Stable Version](https://camo.githubusercontent.com/8dd9c327539c6242ef520e036f1bdd921c1a2461e0e183ebc4c6976e53e770ed/68747470733a2f2f706f7365722e707567782e6f72672f70657263796d616d6564792f6c61726176656c2d6465762d626f6f7465722f762f737461626c65)](https://packagist.org/packages/percymamedy/laravel-dev-booter) [![Latest Unstable Version](https://camo.githubusercontent.com/9356c79b468fa17db46dfa00fd44d60f4153ae8612c170e399a38e1edeae8e16/68747470733a2f2f706f7365722e707567782e6f72672f70657263796d616d6564792f6c61726176656c2d6465762d626f6f7465722f762f756e737461626c65)](https://packagist.org/packages/percymamedy/laravel-dev-booter) [![License](https://camo.githubusercontent.com/be6fd28676d29039e62e95070879119c32a0051bb81053211b35b65751de1650/68747470733a2f2f706f7365722e707567782e6f72672f70657263796d616d6564792f6c61726176656c2d6465762d626f6f7465722f6c6963656e7365)](https://packagist.org/packages/percymamedy/laravel-dev-booter) [![Total Downloads](https://camo.githubusercontent.com/64ade89a839535d0283590ee21d49eafd95bdd085832e57fefddd072e3cab59c/68747470733a2f2f706f7365722e707567782e6f72672f70657263796d616d6564792f6c61726176656c2d6465762d626f6f7465722f646f776e6c6f616473)](https://packagist.org/packages/percymamedy/laravel-dev-booter)

Introduction
------------

[](#introduction)

During development of a Laravel App; some Service Providers are very helpful. These services helps us with debugging and coding. But registering these providers on production is usually not a good idea. They can slow down our App or even expose sensitive information.

Laravel Dev Booter helps end this problem. The package consists of a single `Service Provider`. This provider will exclude unwanted providers from your production environment.

License
-------

[](#license)

Laravel Dev Booter is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelDevBooter5.x0.2.x6.x1.0.x7.x2.0.x8.x3.0.x9.x3.0.x10.x4.0.x11.x5.0.x### Installation

[](#installation)

Install Laravel Dev Booter as you would with any other dependency managed by Composer:

```
$ composer require percymamedy/laravel-dev-booter
```

### Configuration

[](#configuration)

> If you are using Laravel &gt;= 5.5, you can skip service registration and aliases registration thanks to Laravel auto package discovery feature.

After installing Laravel Dev Booter all you need is to register the `PercyMamedy\LaravelDevBooter\ServiceProvider`in your `config/app.php` configuration file:

```
'providers' => [
    // Other service providers...

    PercyMamedy\LaravelDevBooter\ServiceProvider::class,
],
```

### Usage

[](#usage)

First use the `vendor:publish` command to copy the configuration file to your application:

```
$ php artisan vendor:publish --provider="PercyMamedy\LaravelDevBooter\ServiceProvider" --tag="config"
```

This will create the file `config/dev-booter.php`.

### Defining your development environments

[](#defining-your-development-environments)

In the file `config/dev-booter.php` you will find the `dev_environments` section. Use this section to define your app's development environments:

```
'dev_environments' => [
    'local',
    'dev',
    'testing'
],
```

These are the only environments where Dev Booter will act; and try to register any Service providers.

### Development Service providers locations

[](#development-service-providers-locations)

The next section in the `config/dev-booter.php` file is the `dev_providers_config_keys`. The array contains an entry for each of your development environments specified above. Feel free to add and edit this section.

```
'dev_providers_config_keys' => [
    'dev'     => ['app.dev_providers', 'app.local_providers'],
    'local'   => 'app.local_providers',
    'testing' => 'app.testing_providers',
]
```

The value for each of these entries can be an array or a string. The values represents the locations of a Service Provider array for each enviroment. You can even specify many locations for an environment, Dev Booter will take care of loading providers in each of these locations.

You may now define these Service Providers array in the `config/app.php` file as you would for any regular Service Provider:

```
'dev_providers' => [
    Foo\Bar\ServiceProvider::class,
],

'local_providers' => [
    Bar\Baz\ServiceProvider::class,
],

'testing_providers' => [
    Foo\Baz\ServiceProvider::class,
],
```

### Development Aliases locations

[](#development-aliases-locations)

The last section of the `config/dev-booter.php` file is the `dev_aliases_config_keys`. As with Service Providers, it works on the same principle.

You first specify the location of your aliases per environment:

```
'dev_aliases_config_keys' => [
    'dev'     => ['app.dev_aliases', 'app.local_aliases'],
    'local'   => 'app.local_aliases',
    'testing' => 'app.testing_aliases',
]
```

Then define these aliases array in the `config/app.php` file:

```
'dev_aliases' => [
    'Foo' => Foo\Bar\Facade::class,
],

'local_aliases' => [
    'Bar' => Bar\Baz\Facade::class,
],

'testing_aliases' => [
    'Baz' => Foo\Baz\Facade::class,
],
```

### Going Further

[](#going-further)

In the above examples, providers and aliases array were define in `config/app.php`, but this does not have to be the case. You can define these array in any config files provided by Laravel or even create your own. Simply make sure you adjust your `dev_providers_config_keys` and `dev_aliases_config_keys`.

For example:

```
'dev_providers_config_keys' => [
    'dev' => ['app_dev.dev_providers', 'app_dev.local_providers'],
    // ...
]
```

Then in `config/app_dev.php`

```
'dev_providers' => [
    Foo\Bar\ServiceProvider::class,
],

'local_providers' => [
    Bar\Baz\ServiceProvider::class,
],
```

### Credits

[](#credits)

Big Thanks to all developers who worked hard to create something amazing!

### Creator

[](#creator)

[![Percy Mamedy](https://camo.githubusercontent.com/209b20c0fcf36bda6ce4e0c8e26a91d6ad79d6c17592eef0d1fd23c175a5eddf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d50657263792532304d616d6564792d6f72616e67652e737667)](https://twitter.com/PercyMamedy)

Twitter: [@PercyMamedy](https://twitter.com/PercyMamedy)
GitHub: [percymamedy](https://github.com/percymamedy)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87% 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 ~257 days

Recently: every ~341 days

Total

12

Last Release

723d ago

Major Versions

v0.2.2 → v1.0.02019-10-22

v1.0.0 → v2.0.02020-10-16

v2.0.0 → v3.0.02021-04-12

v3.0.1 → v4.0.02023-08-28

v4.0.0 → v5.0.02024-07-11

PHP version history (7 changes)v0.1.0PHP &gt;=5.5.0

v1.0.0PHP ^7.2

v2.0.0PHP ^7.3

v3.0.0PHP ^7.3|^8.0

v3.0.1PHP ^7.3|^8.0|^8.1

v4.0.0PHP ^8.1|^8.2

v5.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11259669?v=4)[Percy Mamedy](/maintainers/percymamedy)[@percymamedy](https://github.com/percymamedy)

---

Top Contributors

[![percymamedy](https://avatars.githubusercontent.com/u/11259669?v=4)](https://github.com/percymamedy "percymamedy (67 commits)")[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (7 commits)")[![allanlaal](https://avatars.githubusercontent.com/u/740826?v=4)](https://github.com/allanlaal "allanlaal (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

dev-serviceproviderslaravelregistering-providersphplaraveldev-tools

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/percymamedy-laravel-dev-booter/health.svg)

```
[![Health](https://phpackages.com/badges/percymamedy-laravel-dev-booter/health.svg)](https://phpackages.com/packages/percymamedy-laravel-dev-booter)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

211189.7k8](/packages/bezhansalleh-filament-google-analytics)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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