mbf5923 / lumen-modules by mbf5923

Lumen Module management
307
2
2
Package Data
Maintainer Username: mbf5923
Maintainer Contact: mbf5923@gmail.com (Mohammad Baladi)
Package Create Date: 2021-01-26
Package Last Update: 2021-01-31
Language: PHP
License: MIT
Last Refreshed: 2024-04-22 03:00:22
Package Statistics
Total Downloads: 307
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

lumen-modules

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 mbf5923/lumen-modules

after install complete, load the config and the service provider in bootstrap/app.php

$app->register(Mbf\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/

Credits

Nicolas Widart

Change To Lumen Support

Mohammad Baladi

License

The MIT License (MIT).