Stoykov / lumen-modules by arstoykov

Lumen Modulation
191
2
2
Package Data
Maintainer Username: arstoykov
Maintainer Contact: n.widart@gmail.com (Nicolas Widart)
Package Create Date: 2017-10-23
Package Last Update: 2017-10-23
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:16:20
Package Statistics
Total Downloads: 191
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 1

Lumen-Modules

Simplified version of laravel-modules, fit to use in Lumen 5.5

Software License

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.