GithubHelp home page GithubHelp logo

irooit / laravel-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foryoufeng/laravel-generator

0.0 1.0 0.0 1.63 MB

laravel-generator / laravel代码生成器

Home Page: https://demo.linkgoup.com/

License: Other

PHP 40.35% HTML 53.41% JavaScript 6.23%

laravel-generator's Introduction

laravel-generator

Latest Stable Version Total Downloads License

laravel-generator is administrative interface builder for laravel which can help you build code template you want as soon as possiable.

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5

For GUI

laravel-generator

Installation

Via Composer

composer require --dev foryoufeng/laravel-generator

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

Foryoufeng\Generator\GeneratorServiceProvider::class

Then run the command to install the generator

php artisan generator:install

you may also need install the package barryvdh/laravel-ide-helper,if you do not install it

composer require --dev barryvdh/laravel-ide-helper

After run command you can find config file in config/generator.php,and now you can access your application http://yourhost/generator to use the laravel-generator

After the installation is complete, the project generates templates such as model, controllers and views by default. Other templates can be added or modified according to the actual needs of the project.

templates

laravel-generator

Usage

the generator.php doc

<?php

return [
    'name' => 'Laravel-generator',
    //the url to access
    'route'=>'generator',//you can change the access url if you do not like it
     //the rule  can be used by the field  , You can define the format of the fields you need.
      'rules'=>[
          'string',
          'email',
          'file',
          'numeric',
          'array',
          'alpha',
          'alpha_dash',
          'alpha_num',
          'date',
          'boolean',
          'distinct',
          'phone',
      ],
];

stub

You can define the format of the stub you need followed by my rules,such as

laravel-generator

more stub

https://github.com/foryoufeng/generator-templates

Notice

Only Chinese and English are supported by laravel generator now

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 [email protected] instead of using the issue tracker.

License

MIT. Please see the license file for more information.

laravel-generator's People

Contributors

foryoufeng avatar

Watchers

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