stoykov/lumen-modules

Lumen Modulation

dev-master / 0.1.2.x-dev 2017-10-23 12:49 UTC

This package is auto-updated.

Last update: 2024-04-15 10:33:02 UTC


README

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.