dxmb / lumen-modules
Lumen Module management
Requires
- php: >=7.3
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- laravel/framework: ^8.0
- mockery/mockery: ~1.0
- orchestra/testbench: ^6.2
- phpstan/phpstan: ^0.12.14
- phpunit/phpunit: ^8.5
- spatie/phpunit-snapshot-assertions: ^2.1.0
This package is auto-updated.
Last update: 2024-11-17 10:06:05 UTC
README
Make modular lumen framework for make easy teamwork on big projects
Features
lumen modules is a lumen package which created to manage your large lumen app using modules. Module is like a lumen package, it has some controllers or models. This package is supported and tested in lumen 8. This package is a re-published, re-organised and maintained version of laravel-modules, which isn't support lumen officially.
Install
To install through Composer, by run the following command:
composer require dxmb/lumen-modules
after install complete, load the config and the service provider in bootstrap/app.php
$app->register(dxmb\Modules\LumenModulesServiceProvider::class);
By default the module classes are not loaded automatically. You can autoload your modules using psr-4
. so add bellow code in your composer.json :
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Modules\\": "modules/"
}
}
}
Tip: don't forget to run composer dump-autoload afterwards
for more info and full documentation visit https://nwidart.com/laravel-modules/