Download the PHP package hamzaouaghad/multilayering without Composer
On this page you can find all versions of the php package hamzaouaghad/multilayering. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hamzaouaghad/multilayering
More information about hamzaouaghad/multilayering
Files in hamzaouaghad/multilayering
Package multilayering
Short Description A tiny laravel package to speed up the workflow with the multilayering convetion
License MIT
Homepage https://github.com/HOuaghad/multilayering
Informations about the package multilayering
Multilayering
This package is a tiny laravel package that generates artisan commands to generate the multilayer conventions faster, and speed up the workflow.
If you don't know what multilayer is , feel free to have quick read at coderwall
Install
Via Composer
Usage
Make sure you add this line in your Config\app.php
save and run
Now to go your 'app/providers/', you will find a new providers added :
MultilayerGeneratorServiceProvider
If it's your first time, and you still need to generate the new folder structure, please run:
And afterwards, again, add this to your providers:
Again,
I could easily automate the process of adding all of these service providers and calling them for you, however, this is never the best approach, if not a bad practice, as adding them manually -unlinke automatic registering- actually keeps track of all of the service providers you are using, in your providers array.
So bare the pain of keeping your work organized, it's worth it.
If you wish to quicken the paste, and bake all, you may use the following command :
This command will generate an eloquent class, an interface for it, and a repository that uses this interface. Also, at the http layer, it generates a motor for it that injects that repository.
If you may to bake all with specifics, you may use the following options:
After each file generation, you'll have to run
As it will mention to you everytime, so I think you won't forget.
Examples
This will create :
and
and
and
After all of this, the Providers\MultilayerGeneratorServiceProvider
will be updated as follows :
Available commands
If you wish to go your own way, without mass baking, you can use the following
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.