larapkg/lumen-discovery
Larablocks Analysis
larapkg/lumen-discovery works with any PHP project: the latest release (1.0.1, Feb 18, 2021) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Feb 18, 2021)
- 10 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 18, 2021.
- No releases in the last 12 months.
- First released: Feb 18, 2021.
- Monthly downloads: 10.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require larapkg/lumen-discovery |
|
| Latest Version: | 1.0.1 |
| PHP: | ^7.4|^8.0 |
| License: | MIT |
| Last Updated: | Sep 29, 2023 |
| Links: | GitHub · Packagist |
Lumen Discovery
Add package discovery to your lumen application.
Installation
Require via composer:
composer require larapkg/lumen-discovery
Open your base composer.json file in your project root and add the following to the end of the file:
"scripts": {
"post-autoload-dump": [
"LaraPkg\\LumenDiscover\\Events\\Dump::post"
]
}
The above will enable the packages' ability to discover and cache your providers and aliases.
Now simply register the packages service provider in your bootstrap/app.php file:
$app->register(\LaraPkg\LumenDiscover\ServiceProvider::class);
With the above complete you can now build packages to your hearts content and not worry about how they register into your lumen app.
To make a package you write compatible with this package, you will need to add the following to your packages composer json:
Example from barryvdh/laravel-debugbar
"extra": {
"laravel": {
"providers": [
"Barryvdh\\Debugbar\\ServiceProvider"
],
"aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facade"
}
}
},
With this package you can use laravel or lumen interchangeably but remember if you want to use your packages with Laravel
you should stick with the laravel naming convention.
That's it, now you can pull laravel packages into your lumen app and watch them self register, or you can build your own packages that will also self-register. Have fun!
The base repository this work is off of is composer/composer and it is well worth a read.
Related Packages
Easily format your Laravel Code with this Configuration file and accompanying ar...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.1 | ^7.4| | MIT |