项目作者: nursanamar

项目描述 :
Opencart module generator using Robo
高级语言: PHP
项目地址: git://github.com/nursanamar/OpenCart-module-generator.git
创建时间: 2019-08-09T06:37:55Z
项目社区:https://github.com/nursanamar/OpenCart-module-generator

开源协议:

下载


OpenCart Module Template Generator

Create a basic template for Opencart module using Robo

Installation

  1. #Clone the repository
  2. $ git clone https://github.com/nursanamar/OpenCart-module-generator.git
  3. $ cd OpenCart-module-generator
  4. #Install dependecies
  5. $ composer install
  6. #.env file
  7. $ cp .env.example .env

Setup your .env file

Usage

Create new module

  1. $ vendor/bin/robo module:new

Generate controller,model,view,etc files in src

Install module

  1. $ vendor/bin/robo module:install

Copy all file form src/upload into your Opencart directory (from your .env file)

Watch module

  1. $ vendor/bin/robo module:watch

Wacth any changes in src/upload and copy changed files into Opencart directory (from your .env file)

Build module

  1. $ vendor/bin/robo module:build

Generate ocmod file in build folder, add --with-obf option to build the obfuscated version of your ocmod

Deploy module

  1. $ vendor/bin/robo module:deploy

Upload generated ocmod file to the store