定制 rekamy/generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rekamy/generator

Composer 安装命令:

composer require rekamy/generator

包简介

Web & API Generator with Swagger API Doc

README 文档

README

Introduction

This Generator will generate a complete SPA (Vue JS) CRUD along with the Swagger API Documentation.

Table Of Contents

Click to expand

Installation

The recommended way to install Rekamy Generator is through Composer.

composer require rekamy/generator

Next, you will need to publish the generator's config file by running :

php artisan vendor:publish --provider "Rekamy\Generator\GeneratorServiceProvider"

Configuration

Update the configuration file based on your needs.

// Setup your application name here(For Swagger Use).
'app_name' => env('APP_NAME'),

// Which file would you like to generate. Set the value to false you don't want to generate.
'generate' => [
    // ...
],

// Database configuration. Set your database name here or from .env and exclude any tables you don't want to generate
'database' => [
    // Database name
    'name'           => env('DB_DATABASE'),

    // Exclude table name
    'exclude_tables' => [
        // ...
    ]
],

// Path is where you want the generator to generate.
'path' => [
    // ...
],

// Namespace for the generated files.
'namespace' => [
    // ...
],

// options is an add on you can disable these options by setting the value to false
'options' => [
    // ...
]

Usage

(Optional) Publish configuration :

php artisan vendor:publish --tag="rekamygenerator"

In order to run the generator after configuration, you can run it via :

php artisan generate

Todo

  • handle table name ending with 's'
  • progress bar as per Razlan done in previous version

License

Rekamy Generator is open-sourced software licensed under the MIT license

统计信息

  • 总下载量: 1.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-22