enlitepro/zf2-scaffold 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

enlitepro/zf2-scaffold

Composer 安装命令:

composer require enlitepro/zf2-scaffold

包简介

README 文档

README

INSTALL

The recommended way to install is through composer.

{
    "require-dev": {
        "enlitepro/zf2-scaffold": "~1.0.0"
    }
}

USAGE

./vendor/bin/scaffold

Available commands:
  controller   Generate controller
  entity       Generate entity
  exception    Generate exceptions (RuntimeException, NotFoundException and other)
  form         Generate form factory and write to service.config.php
  full         Generate all available (without module skeleton)
  module       Generate module skeleton
  options      Generate options, options DI trait, options factory and write to service.config.php
  repository   Generate repository and repository DI trait
  service      Generate service, service DI trait, service factory, service test and write to service.config.php


./vendor/bin/scaffold service [--no-service] [--no-trait] [--no-factory]
    [--no-test] [--only-service] [--only-trait]
    [--only-factory] [--only-test] <module> <name>
 <module>              Name of module
 <name>                Name of service
 --no-service          Disable service generation
 --no-trait            Disable service trait generation
 --no-factory          Disable service factory generation
 --no-test             Disable service test generation
 --only-service        Generate only service
 --only-trait          Generate only trait
 --only-factory        Generate only factory
 --only-test           Generate only test


./vendor/bin/scaffold options [--no-options] [--no-trait] [--no-factory]
    [--only-options] [--only-trait] [--only-factory] <module> <name>
 <module>              Name of module
 <name>                Options name (will be append Options postfix)
 --no-options          Disable options generation
 --no-trait            Disable trait generation
 --no-factory          Disable factory generation
 --only-options        Generate only options
 --only-trait          Generate only trait
 --only-factory        Generate only factory

Creating bare module

If you want create separate module, you can use --bare option, which create following folder struct

config/
src/
    ModuleName/
        Module.php
test/
phpunit.xml

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 8
  • Forks: 3
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固