PHPackages                             code-corner/opencart-shell - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. code-corner/opencart-shell

ActiveComposer-package[CLI &amp; Console](/categories/cli)

code-corner/opencart-shell
==========================

use to create extension and controller, language, model, template, library it will save your max time to create files.

v1.0.1(1y ago)2111MITShell

Since Jul 20Pushed 1y ago2 watchersCompare

[ Source](https://github.com/yashgupta-dev/opencart-shell)[ Packagist](https://packagist.org/packages/code-corner/opencart-shell)[ RSS](/packages/code-corner-opencart-shell/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (4)Used By (0)

OpenCart Extension Creation Script
==================================

[](#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
-----

[](#usage)

### Prerequisites

[](#prerequisites)

Ensure you have the following prerequisites installed:

- **Composer**: Required for installing PHP libraries.
- **OpenCart**: Ensure OpenCart is installed and configured properly.

### Commands

[](#commands)

1. **Create Extension**:

    ```
    ./vendor/bin/opencart.sh create-extension   [-c] [-m]
    ```

    - ``: Type of the extension (e.g., module, payment, shipping).
    - ``: 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 &amp; unsinstall methods also it will ask to enter table name &amp; fields name &amp; 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 of the library to create.
4. **Create Model**:

    ```
    ./vendor/bin/opencart.sh create-model
    ```

    - ``: Path to store the model (e.g., extension/payment).
    - ``: Name of the model to create.
5. **Create Controller**:

    ```
    ./vendor/bin/opencart.sh create-controller
    ```

    - ``: Path to store the controller (e.g., extension/payment).
    - ``: Name of the controller to create.
6. **Create Language File**:

    ```
    ./vendor/bin/opencart.sh create-language
    ```

    - ``: Path to store the language file (e.g., extension/payment).
    - ``: Name of the language file to create.
7. **Create View Template**:

    ```
    ./vendor/bin/opencart.sh create-template
    ```

    - ``: Path to store the template (e.g., extension/payment).
    - ``: Name of the template to create.
8. **Create OCMOD XML File**:

    ```
    ./vendor/bin/opencart.sh create-ocmod  [-z]
    ```

    - ``: Name of the OCMOD XML file.
    - `[-z]`: Optional flag to create a zip file.

### Notes

[](#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.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

712d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39840278?v=4)[Yash Gupta](/maintainers/yashgupta-dev)[@yashgupta-dev](https://github.com/yashgupta-dev)

---

Top Contributors

[![yashgupta-dev](https://avatars.githubusercontent.com/u/39840278?v=4)](https://github.com/yashgupta-dev "yashgupta-dev (14 commits)")

---

Tags

bincoreopencartphpshellshellscriptvendor

### Embed Badge

![Health badge](/badges/code-corner-opencart-shell/health.svg)

```
[![Health](https://phpackages.com/badges/code-corner-opencart-shell/health.svg)](https://phpackages.com/packages/code-corner-opencart-shell)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
