2017 © Pedro Peláez
 

library modular

Modular structure for laravel projects.

image

rits/modular

Modular structure for laravel projects.

  • Wednesday, May 31, 2017
  • by ferrl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Modular

Build Status Coverage Status Code Climate Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Offers a easy way to modularize your laravel app., (*2)

Installation

Require this package with composer:, (*3)

composer require rits/modular

After updating composer, add the ModularServiceProvider to the providers array in config/app.php. Use vendor:publish command to create the configuration file., (*4)

php artisan vendor:publish --tag=rits/modular

Usage

You can choose wherever you want to store your modules. In most cases app/Modules is a good choice. Create a class that extends the ModuleDefinition class, and add the class name in the modular.php config file., (*5)

Example:, (*6)

  • Create the app/Modules/Frontend/Module.php file;
  • Create the class with the correct namespace and extend Rits\Modular\ModuleDefinition;
  • Add App\Modules\Frontend\Module::class to the available array in the modular.php config file.

Restrictions

All module's controllers must be in a Controllers folder in the module main directory., (*7)

Roadmap

  1. Create a command to easily create a new module;
  2. Rewrite the README.md with better examples;
  3. Provide a example repository.

The Versions

31/05 2017

dev-master

9999999-dev https://rits.com.br

Modular structure for laravel projects.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas Ferreira

laravel framework modules

31/05 2017