Git Product home page Git Product logo

laravel-oh-generators's Introduction

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.

laravel-oh-generators's People

Contributors

mombuyish avatar flash662 avatar johnteee avatar

Watchers

James Cloos avatar echobool avatar  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.