Download the PHP package dot-env-it/laravel-module-boilerplate without Composer
On this page you can find all versions of the php package dot-env-it/laravel-module-boilerplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dot-env-it/laravel-module-boilerplate
More information about dot-env-it/laravel-module-boilerplate
Files in dot-env-it/laravel-module-boilerplate
Package laravel-module-boilerplate
Short Description A streamlined boilerplate generator for modular Laravel architectures.
License MIT
Informations about the package laravel-module-boilerplate
Laravel Module Boilerplate
A high-performance modular architecture generator designed for Laravel. This package allows you to quickly scaffold entire modules (Controllers, Models, Services, etc.) within a modules/ directory.
🚀 Installation
This package is intended for local development only. Do not install it in production.
1. Require the Package
Install via Composer using the --dev flag:
2. Publish Stubs (Optional)
If you wish to customize the templates used for generation, publish the stubs to your project root:
The stubs will be available in stubs/vendor/dot-env-it/.
🛠 Usage
Generate a Full Module
To scaffold a complete module structure:
Custom JS Path
If you use a non-standard directory for your frontend assets:
Available Sub-Commands
You can also generate individual components within a module:
php artisan module:controller {name} --module={module}php artisan module:model {name} --module={module}php artisan module:service {name} --module={module}php artisan module:request {name} --module={module}- (And 14+ other specialized commands)
📂 Module Structure
Generated modules follow this clean architecture:
It also creates permissions if spatie/laravel-permission package is installed.
🛡 Security & Environment
This package automatically disables its commands when APP_ENV is set to production. This ensures that your file system remain protected in live environments.
👥 Credits
- dot-env-it ([email protected])
📄 License
The MIT License (MIT). Please see License File for more information.