Download the PHP package code-corner/opencart-shell without Composer
On this page you can find all versions of the php package code-corner/opencart-shell. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download code-corner/opencart-shell
More information about code-corner/opencart-shell
Files in code-corner/opencart-shell
Package opencart-shell
Short Description use to create extension and controller, language, model, template, library it will save your max time to create files.
License MIT
Informations about the package opencart-shell
OpenCart Extension Creation Script
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:
<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:
- Installs Code Corner's validation library via Composer.
-
Create Library:
<name>
: Name of the library to create.
-
Create Model:
<path>
: Path to store the model (e.g., extension/payment).<name>
: Name of the model to create.
-
Create Controller:
<path>
: Path to store the controller (e.g., extension/payment).<name>
: Name of the controller to create.
-
Create Language File:
<path>
: Path to store the language file (e.g., extension/payment).<name>
: Name of the language file to create.
-
Create View Template:
<path>
: Path to store the template (e.g., extension/payment).<name>
: Name of the template to create.
-
Create OCMOD XML File:
<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.