ewci/cli-make-command 问题修复 & 功能扩展

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

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

ewci/cli-make-command

Composer 安装命令:

composer require ewci/cli-make-command

包简介

Package to help making the command class, controller class, filter class, entity class, model class

README 文档

README

Latest Stable Version Total Downloads License

CodeIgniter CLI Make Command is based on CodeIgniter version 4. It will help you generate template files (Command line, Controller, Filter, Entity, Model) more quickly when developing projects with CodeIgniter4.

This is an idea got from Laravel Framework as well.

Install

Prerequisites

  1. CodeIgniter Framework 4.*
  2. Composer

Composer Install

composer require ewci/cli-make-command

Use Library

Open Terminal in Mac/Linux or go to Run > “cmd” in Windows and navigate to CodeIgniter4 project’s root:

php spark list

Now, if you see the following message, the installation is successful.

make
  make:command       Create a new command class.
  make:controller    Create a new controller class.
  make:entity        Create a new entity class.
  make:filter        Create a new filter class.
  make:model         Create a new model class.

Guide

make:command

Create a new command file.

  • Use

    php spark make:command [class_name] [options]
    
  • Description:

    Create a new command file.
    
  • Arguments:

    1. class_name : The command name.
  • Options:

    --command   The command name to run in spark. Defaults to command:name.
    --group     The group/namespace of the command. Defaults to CodeIgniter for basic commands, and Generators for generator commands.
    --type      The type of command, whether a basic command or a generator command. Defaults to basic
    -n          Set controller namespace
    --force     Set this flag to overwrite existing files on destination.
    

make:controller

Create a new controller file.

  • Use

    php spark make:controller [class_name] [options]
    
  • Description:

    Create a new controller file.
    
  • Arguments:

    1. class_name : The controller name.
  • Options:

    --restful   Extends from a RESTful resource.
    -n          Set controller namespace
    --force     Set this flag to overwrite existing files on destination.
    

make:entity

Create a new entity file.

  • Use

    php spark make:entity [class_name] [options]
    
  • Description:

    Create a new entity file.
    
  • Arguments:

    1. class_name : The entity name
  • Options:

    -n          Set entity namespace
    --force     Set this flag to overwrite existing files on destination.
    

make:model

Create a new model file.

  • Use

    php spark make:model [class_name] [options]
    
  • Description:

    Create a new model file.
    
  • Arguments:

    1. class_name : The model name
  • Options:

    --dbgroup   Database group to use. Defaults to default.
    --entity    Set this flag to use an entity class as the return type.'
    --table     Supply a different table name. Defaults to the pluralized class name.'
    -n          Set model namespace
    --force     Set this flag to overwrite existing files on destination.
    

make:filter

Create a new filter file.

  • Use

    php spark make:filter [class_name] [options]
    
  • Description:

    Create a new filter file.
    
  • Arguments:

    1. class_name : The filter name
  • Options:

    -n          Set filter namespace
    --force     Set this flag to overwrite existing files on destination.
    

Enjoy!

ewci/cli-make-command 适用场景与选型建议

ewci/cli-make-command 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 10 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「cli」 「codeigniter」 「make」 「codeigniter4」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 ewci/cli-make-command 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ewci/cli-make-command 我们能提供哪些服务?
定制开发 / 二次开发

基于 ewci/cli-make-command 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-30