Download the PHP package yish/generators without Composer
On this page you can find all versions of the php package yish/generators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yish/generators
More information about yish/generators
Files in yish/generators
Package generators
Short Description This package extends the core file generators that are included with Laravel 5 or later.
License MIT
Homepage https://github.com/Mombuyish/Laravel-Oh-Generators
Informations about the package generators
Laravel Oh Generators
This package extends the core file generators that are included with Laravel 5 or later.
Requirement
PHP >= 7
Laravel >= 5
- 5.4 before using branch
1.1.x
- 5.5 ~ 5.7 using branch
2.0.x
- 5.8 - 8.x using branch
3.x.x
Installation
Install via composer
Registing Service Provider
If you are using laravel 5.5 or later, you can use auto discover, you don't need put in service provider to app.php
.
Generating Service
It can be generating class service.
Also, it supports abstract service. You should inject your repository or model and then use it.
Generating Repository
It can be generating class repository.
Also, it supports abstract repository. You should inject your model and then use it.
Generating Transformer
It can be generating class transformer.
Support
TransformContract
Helper / transformer()
Generating Formatter
It can be generating class formatter.
Support
FormatContract
Statusable
You can use Statusable
trait to help you faster building formalize format.
Set property $status = true
, you can get success format. $status
must be boolean, if not you will get exception.
If not, you can set false
to get failed format.
If you need customize message, you can do:
Or you can customize status code, you can do:
If you need to customize what you need, check out Yish\Generators\Foundation\Format\Statusable
get more detail.
Helper / formatter()
Generating Presenter
It can be generating class presenter.
Generating Foundation
It can be generating class foundation.
Generating Transport
It can be generating class transport.
Generating Parser
It can be generating class parser.
Generating Response
It can be generating class response.
All versions of generators with dependencies
illuminate/support Version 5.*|^6.0|^7.0|^8.0
illuminate/console Version 5.*|^6.0|^7.0|^8.0
illuminate/filesystem Version 5.*|^6.0|^7.0|^8.0