Skip to content

This package extends the core file generators that are included with Laravel 5.

Notifications You must be signed in to change notification settings

MyLifeForCoding/Laravel-Oh-Generators

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Total Downloads Latest Stable Version License License

Laravel Oh Generators

This package extends the core file generators that are included with Laravel 5

Installation

Install by composer

    $ composer require yish/generators
  • 5.4 before using branch 1.1.x
  • 5.5 or later using branch 2.0.x

Registing Service Provider

If you are using laravel 5.5, you can use auto discover also, you don't need put in service provider to app.php.

<?php

//app.php

'providers' => [
        \Yish\Generators\GeneratorsServiceProvider::class,
    ],

Example

Providing commands:

Generating Service:

It can be generating class service.

    $ php artisan make:service UserService

Generating Repository:

It can be generating class repository.

    $ php artisan make:repository UserRepository

Generating Transformer:

It can be generating class transformer.

    $ php artisan make:transformer UserTransformer
  • Supported:
    • Helpers
    • TransformContract

Generating Formatter

It can be generating class formatter.

    $ php artisan make:formatter UserFormatter
  • Supported:
    • Statusable
    • Helpers
    • FormatContract

Generating Presenter

It can be generating class presenter.

    $ php artisan make:presenter UserPresenter

Generating Foundation

It can be generating class foundation.

    $ php artisan make:foundation Taggable

If you need more examples and documentation, see documentation.

About

This package extends the core file generators that are included with Laravel 5.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%