wildanmzaki/wize
Composer 安装命令:
composer require wildanmzaki/wize
包简介
This is php cli tool specialized for codeigniter 3 development helper
README 文档
README
Wizely develop your CodeIgniter 3 application! Wize is a CLI tool designed to supercharge your CodeIgniter 3 development experience with enhanced command-line utilities.
📥 Installation
You can install Wize using Composer.
composer require --dev wildanmzaki/wize
Next copy vendor/wildanmzaki/wize/wize file into your root project directory. Normally you can get the file just by running this command on bash terminal
cp vendor/wildanmzaki/wize/wize ./
Last, run php wize init to get your wize config file, and this file can make you easily modify the tool behaviour
php wize init
📌 Getting Started
Run the wize list command to see available options:
php wize list
🛠️ Available Commands
General Commands
| Command | Description |
|---|---|
php wize author |
Display tool's author(s) and contributor(s) |
php wize info |
Display Wize tool information |
php wize init |
Initialize the Wize CLI in a project |
php wize list |
List all available commands |
php wize migrate |
Run all database migrations |
php wize serve |
Serve the CodeIgniter 3 application |
php wize version |
Display Wize version |
Creation Commands
| Command | Description |
|---|---|
php wize create:command MyCommand |
Create a new custom command |
php wize create:controller MyController |
Create a new controller |
php wize create:helper general |
Create a new helper file |
php wize create:library MyLibrary |
Create a new library |
php wize create:migration create_users_table |
Generate a migration SQL file |
php wize create:model MyModel |
Create a new model |
php wize create:module MyModule |
Create a new module |
Migration Commands
| Command | Description |
|---|---|
php wize migrate |
Import all.sqlfiles indatabase/migrations |
php wize migrate:fresh |
Reset the database and re-run migrations |
php wize migrate:status |
Show migration status |
Configuration Commands
| Command | Description |
|---|---|
php wize set:alias |
Set additional command alias |
php wize set:config |
Configure Wize settings |
🎯 Global Options
Wize supports global options that work with any command:
-h or --help, it would show command-specific help
Example:
php wize migrate --help
🎯 Usage Examples
Start Local Development Server
Defaultly, it would running at localhost with port 8080. But you can customize it like the example below:
php wize serve --host=127.0.0.1 --port=9000
Then open http://127.0.0.1:9000 in your browser.
Run Migrations
php wize migrate
Reset & Re-run Migrations
php wize migrate:fresh
Create a New Controller
php wize create:controller Home
*Note: You can specify module if you use HMVC paradigm when creating controller.
You can do it with 2 method:
-
Define module in the option like:
php wize create:controller Login --module=auth
-
Place module name before the controller name
php wize create:controller auth/Login
🛠️ Configuration
When running php wize init, Wize generates a configuration file:
📄 wize.config.json
Default structure:
{
"env": "development",
"module": true,
"theme": "default",
"extend": "wize.extend",
"paths": {
"root": "/",
"application": "application",
"system": "system",
"views": "application/views",
"database": "database"
},
"migration": {
"connection": "default",
"table": "ci_migrations"
},
"aliases": {}
}
You can modify this file to customize the tool behavior. It can be modified easily just by running set:config key value command. Example:
php wize set:config theme customized
Go to deeper property:
php wize set:config migration.table my_migrations
📜 License
Wize is open-source and licensed under the MIT License. See LICENSE for details.
👨💻 Credits
Developed by Wildan M Zaki Maintained by contributors.
For questions or support, open an issue on GitHub. 🚀
wildanmzaki/wize 适用场景与选型建议
wildanmzaki/wize 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wildanmzaki/wize 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wildanmzaki/wize 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-03