code-corner/opencart-shell
Composer 安装命令:
composer require code-corner/opencart-shell
包简介
use to create extension and controller, language, model, template, library it will save your max time to create files.
README 文档
README
This script automates the creation of extensions for OpenCart, specifically targeting the creation of controllers, models, languages, views, and OCMOD files.
Usage
Prerequisites
Ensure you have the following prerequisites installed:
- Composer: Required for installing PHP libraries.
- OpenCart: Ensure OpenCart is installed and configured properly.
Commands
-
Create Extension:
./vendor/bin/opencart.sh create-extension <type> <name> [-c] [-m]
<type>: Type of the extension (e.g., module, payment, shipping).<name>: Name of the extension (e.g., my_extension_name).[-c]: Optional flag to create catalog-side files.[-m]: Optional flag to create model in admin side with install & unsinstall methods also it will ask to enter table name & fields name & field data type.
-
Install Validation Library:
./vendor/bin/opencart.sh install-validation-library
- Installs Code Corner's validation library via Composer.
-
Create Library:
./vendor/bin/opencart.sh create-library <name>
<name>: Name of the library to create.
-
Create Model:
./vendor/bin/opencart.sh create-model <path> <name>
<path>: Path to store the model (e.g., extension/payment).<name>: Name of the model to create.
-
Create Controller:
./vendor/bin/opencart.sh create-controller <path> <name>
<path>: Path to store the controller (e.g., extension/payment).<name>: Name of the controller to create.
-
Create Language File:
./vendor/bin/opencart.sh create-language <path> <name>
<path>: Path to store the language file (e.g., extension/payment).<name>: Name of the language file to create.
-
Create View Template:
./vendor/bin/opencart.sh create-template <path> <name>
<path>: Path to store the template (e.g., extension/payment).<name>: Name of the template to create.
-
Create OCMOD XML File:
./vendor/bin/opencart.sh create-ocmod <name> [-z]
<name>: Name of the OCMOD XML file.[-z]: Optional flag to create a zip file.
Notes
- Always ensure paths and names are specified correctly to avoid errors.
- Modify the script as per your specific requirements and file structure.
- Ensure proper permissions are set for script execution (
chmod +x opencart.sh).
This README provides a structured overview of how to use the script and its various functionalities. Adjust the content based on your specific script's features and usage guidelines.
code-corner/opencart-shell 适用场景与选型建议
code-corner/opencart-shell 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 code-corner/opencart-shell 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 code-corner/opencart-shell 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-20