定制 thebinoculars/code-generator 二次开发

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

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

thebinoculars/code-generator

最新稳定版本:v1.0

Composer 安装命令:

composer require thebinoculars/code-generator

包简介

Code generator for Laravel

README 文档

README

Packagist Version

Code Generator for Laravel

Using this package to generate controller, migration, model, route, request, resource for your Laravel application

Installation

composer require thebinoculars/code-generator --dev

Usage

php artisan generate:code YOUR_MODEL_NAME --field "FIELD_NAME:FIELD_TYPE"

Example

php artisan generate:code product --field "name:string"

Custom your own templates

php artisan vendor:publish --tag=code-generator
  • Available field types: smallint, bigint, datetimetz, blob, integer, boolean, date, time, datetime, text, decimal, float, object, array, simple_array, json_array, guid
  • You can also use our BaseService by extending TheBinoculars\CodeGenerator\Services\BaseService class or create your own
  • List of variables used in filename: (XXX) is equivalent to .XXX (extension) {YYY} is equivalent to global config variable YYY (defined in config/generator) [ZZZ] is equivalent to model form variable ZZZ (available values: PLURAL_UPPER, PLURAL_LOWER, PLURAL_UC, PLURAL_STUDLY, PLURAL_CAMEL, PLURAL_KEBAB, PLURAL_SNAKE, UPPER, LOWER, UC, STUDLY, CAMEL, KEBAB, SNAKE)
  • You can also use model form variables and global config variables in templates

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-08