https://github.com/norbybaru/modularize
Generates Laravel modules
https://github.com/norbybaru/modularize
laravel modularize module module-pattern php
Last synced: about 1 month ago
JSON representation
Generates Laravel modules
- Host: GitHub
- URL: https://github.com/norbybaru/modularize
- Owner: norbybaru
- License: mit
- Created: 2018-05-07T21:40:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-05-24T00:20:57.000Z (9 months ago)
- Last Synced: 2025-07-27T15:05:15.562Z (7 months ago)
- Topics: laravel, modularize, module, module-pattern, php
- Language: PHP
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Modularize
The package encourage implementation of modular pattern for your Laravel project.
You can easily start your modular journey with this simple package and generate only files you need.
A module is like a Laravel package, it has some views, controllers or models.
## Installation
Run the following command from your projects root
```php
composer require norbybaru/modularize
```
## Configuration
Publish the package configuration using the following command:
```php
php artisan vendor:publish --provider="NorbyBaru\Modularize\ModularizeServiceProvider"
```
### Autoloading
The default namespace is set as Modules this will apply the namespace for all classes the module will use when it's being created and later when generation additional classes.
For autoloading modules, add the following to your composer.json and execute composer dump-autoload:
```php
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Modules\\": "modules/"
}
}
}
```
## Basic Usage
### Create module
Open your terminal and run command to list all possible commands:
```
php artisan module:make:
```
## Advance Usage
Credits to:
- ["Modular Structure in Laravel 5" tutorial](http://ziyahanalbeniz.blogspot.com.tr/2015/03/modular-structure-in-laravel-5.html)
- ["Artem Schander - L5 Modular"](https://github.com/Artem-Schander/L5Modular)