2017 © Pedro Peláez
 

library laravel-modules

Laravel module management

image

rawilk/laravel-modules

Laravel module management

  • Monday, July 9, 2018
  • by rawilk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel-Modules

Latest Version on Packagist Build Status GitHub issues Software License Quality Score Total Downloads, (*1)

rawilk/laravel-modules is a Laravel package to help build modular apps using modules. A module is like a Laravel package; it has some views, controllers and models. Laravel-Modules is supported and tested in Laravel 6., (*2)

This package is inspired by nWidart/laravel-modules. Although laravel-modules is mainly intended for my own use and has certain parts written to cater to my needs, you are free to use it., (*3)

Installation

To install the package through composer, run the following command, (*4)

composer require rawilk/laravel-modules

The package will automatically register its service provider and alias., (*5)

You can optionally publish the package's configuration file by running:, (*6)

php artisan vendor:publish --provider="Rawilk\LaravelModules\LaravelModulesServiceProvider"

Autoloading Modules

By default the modules are not loaded automatically. You can autoload the modules by using psr-4 in your composer.json file:, (*7)

{
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Modules\\": "Modules/"
        }
    }
}
  • If you changed the module namespace in the config file, be sure to change "Modules\\" to your new namespace.
  • If you changed the directory where the modules get stored in the config file, be sure to change "Modules/" to the directory they will be stored in.

Tip: Be sure sure to run composer dump-autoload afterwards., (*8)

Database

Database installation and activation of modules is still a work in progress and is not ready for production yet. I do have plans to finish this functionality in a future release., (*9)

Documentation

Further information and instructions can be found at: https://rawilk.github.io/laravel-modules/, (*10)

Credits

License

The MIT License (MIT). Please see the License file for more information., (*11)

The Versions