soyoz / Modulity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Module Generator

Simple Laravel Module Generator.

Build Status MIT License Coverage Status security stable

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/modulity

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 modulity.config

php artisan vendor:publish

Step 4 : Update Modules Namespace, modulity.php or .env file

'name_space' => env("MODULE_GENERATOR_NAMESPACE", 'TanerInCode')

OR

MODULE_GENERATOR_NAMESPACE=TanerInCode

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

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

License:MIT License


Languages

Language:PHP 100.0%