tanerincode / module-generator
A Module Generator CLI Package
Requires
- php: >=7.2.0
- ext-mbstring: *
- illuminate/console: >=5.3.0
- illuminate/support: >=5.3.0
This package is auto-updated.
Last update: 2024-10-20 16:36:43 UTC
README
Simple Laravel Module Generator.
Getting Started
This Package: Automatically creates a module or part in a Laravel Modular Pattern.
Prerequisites
What things you need to install the software and how to install them
"php": "^7.2.0",
"illuminate/console": "^5.3.0",
"illuminate/support": "^5.3.0",
"laravel/laravel" : "^5.6.*"
""
Installing
A step by step series of examples that tell you how to get a development env running
Step 1 : require composer package
composer require tanerincode/module-generator
Step 2 : if this package not working automatically add provider in config/app.php
TanerInCode\Modulity\Providers\ModulityServiceProvider::class,
Step 3 : Publish config file and select mgenerator.php
php artisan vendor:publish
Step 4 : Update Modules Namespace, mgenerator.php
or .env
file
'name_space' => getenv("MODULE_GENERATOR_NAMESPACE", 'ChangeHere')
OR
MODULE_GENERATOR_NAMESPACE=ChangeHere
PS: Do not touch src_url
.
Last Step : Replace the Psr-4 field in the Composer.json file with the namespace of your choice.
"autoload": {
...
"psr-4": {
...
"TanerInCode\\" : "app/Modules"
}
Built With
- Laravel - The laravel framework
Authors
- Taner Tombas - TanerInCode
License
This project is licensed under the MIT License - see the LICENSE.md file for details