Coder Social home page Coder Social logo

lmodular's Introduction

Introduction

L-modular library gives you the ability to divide your system into multiple packages, each package has its own required classes so, your system will become more clearly in addition to simplify the re-using of the common generated packages such as (user , admin etc. ) in another projects

Installation

$ composer require l-modular/package

copy service provider link to config/app.php , providers[]

Modular\Provider\ModularServiceProvider::class,

after typing php artisan, you can use one of the commands below

Base commands

$ php artisan packages:create {package}

this command helps you to create new package by inserting the package name instead of ${package}.

Notes

  • The default master folder is Modules, means that if you applied the command in the above, the path of your package will be like {YourProject}/Modules/{package}
  • If you want to create package with custom path, you should append --path= to the command in the above to be like php artisan packages:create {package} --path={package_full_path} so the result will be like {YourProject}/{path}/{package}.
    $ php artisan packages:list 
    the following command helps you show the names of packages you've created before.
    $ php artisan packages:delete {package}
    This line deletes the package you passed and removes its ServiceProvider from Config/app
  • If you want to customize the stub files, just type the command below.
     $ php artisan packages:stubs
    Once you typed the command, a new folder with Packages/l-modular/assets path will be generated automatically with all stubs that used to generate package's classes.

Optional commands

$ php artisan packages:model {model} {package}

this command helps you create a new model in the package you chose.

$ php artisan packages:controller {controller} {package}

this command helps you create a new controller in the package you chose.

$ php artisan packages:middleware {middleware} {package}

this command helps you create a new middleware in the package you chose.

$ php artisan packages:migration {migration} {package}

this command helps you create a new migration in the package you chose.

$ php artisan packages:repo {repository} {package}

this command helps you create a new repository in the package you chose.

$ php artisan packages:service {service} {package}

this command helps you create a new service in the package you chose.

Contact

Please, feel free to contact me if get any kind of issues

lmodular's People

Contributors

pshadowclone avatar

Stargazers

 avatar  avatar  avatar Abdulrhman Herzallah avatar  avatar

Watchers

James Cloos avatar Alessandro C Silva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.