Download the PHP package omenejoseph/scafolder without Composer
On this page you can find all versions of the php package omenejoseph/scafolder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omenejoseph/scafolder
More information about omenejoseph/scafolder
Files in omenejoseph/scafolder
Package scafolder
Short Description :scafolding laravel files
License MIT
Homepage https://github.com/omenejoseph/scafolder
Informations about the package scafolder
Scafolder
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Usage
What it does
This library simplifies file/class scafolding for laravel developers looking to have an organized and easy way to create fast becoming popular classes like Repositories, Services and Util helpers via bash commands.
Commands currently available
1. Bootstrapping Repository Pattern
Repository pattern is fast becoming a choice design pattern for many laravel developers. Setting up a repository requires creating as much as 2 classes and one 1 interface. With this library, you can set up a Repository with just one command
Here model represents the Model you want to create the repository for such as Post or User. This commands created 3 files:
- The repository class (namespace: App\Repositories)
- The contract that the repository implements (namespace: App\Contracts)
- A Service Provider class that binds the interface to the repository (namespace: App\ServiceProviders)
After that, all you need to do is register the Service provider generated in your config.app.providers array so it would be auto discovered. This class
2. Bootstrapping Services
Its fast becoming a norm for laravel developers to have a lean controller and model class. This has given rise to many developers opting to have service classes servicing each controller. These service classes house the bulk of the logic usually hosted in the controller class thus making it very lean. The controller just has to instantiate the class and make use of methods that perform actions for the controller. Creating a service class:
This creates a service class in the App\Services namespace
3. Bootstrapping Traits
Many developers rely on traits to abstract common methods to classes. With this library, Creating a trait is as easy and running an artisan command
This creates a trait in the App\Traits namespace
Future updates
We are looking to adding commands to create facades and util classes
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- [Omene Joseph Ogheneruno][https://omenejoseph.com.ng]
License
license. Please see the license file for more information.