stoykov / lumen-modules
Lumen Modulation
Requires
- php: >=7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.7
- laravel/framework: 5.5.*
This package is auto-updated.
Last update: 2024-11-15 11:40:19 UTC
README
Simplified version of laravel-modules, fit to use in Lumen 5.5
stoykov/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 views, controllers or models. This package is supported and tested in Lumen 5.5.
This package is a simplified version of laravel-modules with only Lumen support in mind, it has the bare minimum to be able to serve modules.
Find out why you should use this package in the article: Writing modular applications with laravel-modules.
Install
To install through Composer, by run the following command:
composer require stoykov/lumen-modules
The package will automatically register a service provider and alias.
Autoloading
By default the module classes are not loaded automatically. You can autoload your modules using psr-4
. For example:
{ "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/" } } }
Tip: don't forget to run composer dump-autoload
afterwards.
Documentation
You'll find installation instructions and full documentation on https://nwidart.com/laravel-modules/.
Credits
License
The MIT License (MIT). Please see License File for more information.