code-corner/opencart-shell 问题修复 & 功能扩展

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

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

code-corner/opencart-shell

最新稳定版本:v1.0.1

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

  1. 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.
  2. Install Validation Library:

    ./vendor/bin/opencart.sh install-validation-library
    • Installs Code Corner's validation library via Composer.
  3. Create Library:

    ./vendor/bin/opencart.sh create-library <name>
    • <name>: Name of the library to create.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固