Create a basic template for Opencart module using Robo
#Clone the repository
$ git clone https://github.com/nursanamar/OpenCart-module-generator.git
$ cd OpenCart-module-generator
#Install dependecies
$ composer install
#.env file
$ cp .env.example .env
Setup your .env
file
$ vendor/bin/robo module:new
Generate controller,model,view,etc files in src
$ vendor/bin/robo module:install
Copy all file form src/upload
into your Opencart directory (from your .env file)
$ vendor/bin/robo module:watch
Wacth any changes in src/upload
and copy changed files into Opencart directory (from your .env file)
$ vendor/bin/robo module:build
Generate ocmod file in build
folder, add --with-obf
option to build the obfuscated version of your ocmod
$ vendor/bin/robo module:deploy
Upload generated ocmod file to the store