承接 mateusgroza/ci3-make-tools 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mateusgroza/ci3-make-tools

最新稳定版本:1.0.0

Composer 安装命令:

composer require mateusgroza/ci3-make-tools

包简介

CLI tools for automatically generating files in CodeIgniter 3 projects (make-style commands).

README 文档

README

A CodeIgniter 3 development toolkit that provides convenient command-line tools for generating boilerplate code and managing project structure.

Installation

Install the package via Composer:

composer require mateusgroza/ci3-make-tools

Configuration

Add the following script to your composer.json file to enable the composer make command:

{
    "scripts": {
        "make": "@php vendor/mateusgroza/ci3-make-tools/bin/make"
    }
}

After adding the script, you can use composer make as the base command for all generation tasks.

Available Commands

Environment Variables Generator

Create environment variables in both env.php and env.php.example (or env.example.php) files:

composer make env {CONSTANT_NAME} {VALUE_FOR_ENV_ONLY} "{DESCRIPTION}"

Example:

composer make env DATABASE_HOST "localhost" "Database host configuration"

Migration Generator

Generate database migration files with various operations:

composer make migration {command} {table_name} {version}

Parameters:

  • command: The migration operation (create, alter, insert, update)
  • table_name: Name of the database table
  • version: Migration version (defaults to last_version + 1)

Examples:

composer make migration create users
composer make migration alter users 002
composer make migration insert products 003
composer make migration update orders

Module Generator (HMVC Projects Only)

Generate modules for HMVC (Hierarchical Model-View-Controller) projects:

composer make module {application_folder} {module_name} {submenu_name}

Parameters:

  • application_folder: The application directory name
  • module_name: Name of the module to create
  • submenu_name: Name of the submenu

Example:

composer make module admin user_management users

Usage

All commands start with composer make followed by the specific generator and its parameters. Make sure you have properly configured the composer script as shown in the configuration section above.

Requirements

  • PHP 7.4 or higher
  • CodeIgniter 3.x
  • Composer

Contributing

Feel free to contribute to this project by submitting issues or pull requests.

License

This project is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

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