{"id":18721646,"url":"https://github.com/percymamedy/laravel-dev-booter","last_synced_at":"2025-09-19T15:32:14.267Z","repository":{"id":11633157,"uuid":"70182697","full_name":"percymamedy/laravel-dev-booter","owner":"percymamedy","description":":construction: Boost your Laravel app by registering Prod services only on Prod.","archived":false,"fork":false,"pushed_at":"2024-07-12T07:10:16.000Z","size":78,"stargazers_count":35,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-08T00:44:23.652Z","etag":null,"topics":["dev-serviceproviders","laravel","registering-providers"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/percymamedy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-06T18:44:40.000Z","updated_at":"2025-03-02T12:13:17.000Z","dependencies_parsed_at":"2024-11-07T13:41:50.219Z","dependency_job_id":"397ff954-4f7a-412a-b1ff-ac4ebf1f7642","html_url":"https://github.com/percymamedy/laravel-dev-booter","commit_stats":{"total_commits":44,"total_committers":6,"mean_commits":7.333333333333333,"dds":0.2954545454545454,"last_synced_commit":"308d711916272da14c3d71bf06c4f5796b1b0db4"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/percymamedy/laravel-dev-booter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percymamedy%2Flaravel-dev-booter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percymamedy%2Flaravel-dev-booter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percymamedy%2Flaravel-dev-booter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percymamedy%2Flaravel-dev-booter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/percymamedy","download_url":"https://codeload.github.com/percymamedy/laravel-dev-booter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percymamedy%2Flaravel-dev-booter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275176104,"owners_count":25418387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dev-serviceproviders","laravel","registering-providers"],"created_at":"2024-11-07T13:35:57.352Z","updated_at":"2025-09-19T15:32:13.974Z","avatar_url":"https://github.com/percymamedy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n   \u003cimg src=\"https://raw.githubusercontent.com/LaraChimp/art-work/master/packages/dev-booter/dev-booter-art.png\"\u003e Laravel dev booter\n\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/percymamedy/laravel-dev-booter\"\u003e\u003cimg src=\"https://poser.pugx.org/percymamedy/laravel-dev-booter/v/stable\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/percymamedy/laravel-dev-booter\"\u003e\u003cimg src=\"https://poser.pugx.org/percymamedy/laravel-dev-booter/v/unstable\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/percymamedy/laravel-dev-booter\"\u003e\u003cimg src=\"https://poser.pugx.org/percymamedy/laravel-dev-booter/license\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/percymamedy/laravel-dev-booter\"\u003e\u003cimg src=\"https://poser.pugx.org/percymamedy/laravel-dev-booter/downloads\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\nDuring development of a Laravel App; some Service Providers are very helpful. These services helps us with debugging and coding.\nBut registering these providers on production is usually not a good idea. They can slow down our App or even expose sensitive information.\n\nLaravel Dev Booter helps  end this problem. The package consists of a single ```Service Provider```. \nThis provider will exclude unwanted providers from your production environment.\n\n## License\nLaravel Dev Booter is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n## Version Compatibility\n\n Laravel  | DevBooter\n:---------|:----------\n 5.x      | 0.2.x\n 6.x      | 1.0.x\n 7.x      | 2.0.x\n 8.x      | 3.0.x\n 9.x      | 3.0.x\n 10.x     | 4.0.x\n 11.x     | 5.0.x\n \n### Installation\nInstall Laravel Dev Booter as you would with any other dependency managed by Composer:\n\n ```bash\n $ composer require percymamedy/laravel-dev-booter\n ```\n\n### Configuration\n\u003e If you are using Laravel \u003e= 5.5, you can skip service registration \n\u003e and aliases registration thanks to Laravel auto package discovery \n\u003e feature.\n\nAfter installing Laravel Dev Booter all you need is to register the ```PercyMamedy\\LaravelDevBooter\\ServiceProvider``` \nin your `config/app.php` configuration file:\n\n```php\n'providers' =\u003e [\n    // Other service providers...\n\n    PercyMamedy\\LaravelDevBooter\\ServiceProvider::class,\n],\n```\n\n### Usage\nFirst use the ```vendor:publish``` command to copy the configuration file to your application:\n\n ```bash\n$ php artisan vendor:publish --provider=\"PercyMamedy\\LaravelDevBooter\\ServiceProvider\" --tag=\"config\"\n```\n\nThis will create the file ```config/dev-booter.php```.\n\n### Defining your development environments\nIn the file ```config/dev-booter.php``` you will find the ```dev_environments``` section. Use this section\nto define your app's development environments:\n \n```php\n'dev_environments' =\u003e [\n    'local',\n    'dev',\n    'testing'\n],\n```\n\nThese are the only environments where Dev Booter will act; and try to register any Service providers.\n\n### Development Service providers locations\nThe next section in the ```config/dev-booter.php``` file is the ```dev_providers_config_keys```. The array contains an entry\nfor each of your development environments specified above. Feel free to add and edit this section.\n\n```php\n'dev_providers_config_keys' =\u003e [\n    'dev'     =\u003e ['app.dev_providers', 'app.local_providers'],\n    'local'   =\u003e 'app.local_providers',\n    'testing' =\u003e 'app.testing_providers',\n]\n```\n\nThe value for each of these entries can be an array or a string. The values represents the locations of a Service Provider array\nfor each enviroment. You can even specify many locations for an environment, Dev Booter will take care of loading providers in \neach of these locations. \n\nYou may now define these Service Providers array in the ```config/app.php``` file as you would for any regular Service Provider:\n\n```php\n'dev_providers' =\u003e [\n    Foo\\Bar\\ServiceProvider::class,\n],\n\n'local_providers' =\u003e [\n    Bar\\Baz\\ServiceProvider::class,\n],\n\n'testing_providers' =\u003e [\n    Foo\\Baz\\ServiceProvider::class,\n],\n```\n\n### Development Aliases locations\nThe last section of the ```config/dev-booter.php``` file is the ```dev_aliases_config_keys```. As with Service Providers, it works\non the same principle.\n\nYou first specify the location of your aliases per environment:\n\n```php\n'dev_aliases_config_keys' =\u003e [\n    'dev'     =\u003e ['app.dev_aliases', 'app.local_aliases'],\n    'local'   =\u003e 'app.local_aliases',\n    'testing' =\u003e 'app.testing_aliases',\n]\n```\n\nThen define these aliases array in the ```config/app.php``` file:\n\n```php\n'dev_aliases' =\u003e [\n    'Foo' =\u003e Foo\\Bar\\Facade::class,\n],\n\n'local_aliases' =\u003e [\n    'Bar' =\u003e Bar\\Baz\\Facade::class,\n],\n\n'testing_aliases' =\u003e [\n    'Baz' =\u003e Foo\\Baz\\Facade::class,\n],\n```\n\n### Going Further\nIn the above examples, providers and aliases array were define in ```config/app.php```, but this does not have to be the case. You\ncan define these array in any config files provided by Laravel or even create your own. Simply make sure you adjust your \n```dev_providers_config_keys``` and ```dev_aliases_config_keys```.\n\nFor example:\n\n```php\n'dev_providers_config_keys' =\u003e [\n    'dev' =\u003e ['app_dev.dev_providers', 'app_dev.local_providers'],\n    // ...\n]\n```\n\nThen in ```config/app_dev.php```\n\n```php\n'dev_providers' =\u003e [\n    Foo\\Bar\\ServiceProvider::class,\n],\n\n'local_providers' =\u003e [\n    Bar\\Baz\\ServiceProvider::class,\n],\n```\n\n### Credits\nBig Thanks to all developers who worked hard to create something amazing!\n\n### Creator\n[![Percy Mamedy](https://img.shields.io/badge/Author-Percy%20Mamedy-orange.svg)](https://twitter.com/PercyMamedy)\n\nTwitter: [@PercyMamedy](https://twitter.com/PercyMamedy)\n\u003cbr/\u003e\nGitHub: [percymamedy](https://github.com/percymamedy)\n \n \n \n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercymamedy%2Flaravel-dev-booter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercymamedy%2Flaravel-dev-booter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercymamedy%2Flaravel-dev-booter/lists"}