{"id":17383128,"url":"https://github.com/yashgupta-dev/opencart-shell","last_synced_at":"2026-02-02T11:09:23.247Z","repository":{"id":249423326,"uuid":"831481649","full_name":"yashgupta-dev/opencart-shell","owner":"yashgupta-dev","description":"use to create extension and controller, language, model, template, library it will save your max time to create files.","archived":false,"fork":false,"pushed_at":"2024-07-21T12:49:35.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T09:46:05.616Z","etag":null,"topics":["bin","core","opencart","php","shell","shellscript","vendor"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/code-corner/opencart-shell","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashgupta-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T17:17:48.000Z","updated_at":"2024-07-21T12:40:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"34a6f8da-b365-45ca-9030-3b3224188802","html_url":"https://github.com/yashgupta-dev/opencart-shell","commit_stats":null,"previous_names":["yashgupta-dev/opencart-shell"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yashgupta-dev/opencart-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashgupta-dev%2Fopencart-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashgupta-dev%2Fopencart-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashgupta-dev%2Fopencart-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashgupta-dev%2Fopencart-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashgupta-dev","download_url":"https://codeload.github.com/yashgupta-dev/opencart-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashgupta-dev%2Fopencart-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29010785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bin","core","opencart","php","shell","shellscript","vendor"],"created_at":"2024-10-16T07:40:43.105Z","updated_at":"2026-02-02T11:09:23.230Z","avatar_url":"https://github.com/yashgupta-dev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCart Extension Creation Script\n\nThis script automates the creation of extensions for OpenCart, specifically targeting the creation of controllers, models, languages, views, and OCMOD files.\n\n## Usage\n\n### Prerequisites\n\nEnsure you have the following prerequisites installed:\n\n- **Composer**: Required for installing PHP libraries.\n- **OpenCart**: Ensure OpenCart is installed and configured properly.\n\n### Commands\n\n1. **Create Extension**:\n   ```bash\n   ./vendor/bin/opencart.sh create-extension \u003ctype\u003e \u003cname\u003e [-c] [-m]\n   ```\n   - `\u003ctype\u003e`: Type of the extension (e.g., module, payment, shipping).\n   - `\u003cname\u003e`: Name of the extension (e.g., my_extension_name).\n   - `[-c]`: Optional flag to create catalog-side files.\n   - `[-m]`: Optional flag to create model in admin side with install \u0026 unsinstall methods also it will ask to enter table name \u0026 fields name \u0026 field data type.\n\n2. **Install Validation Library**:\n   ```bash\n   ./vendor/bin/opencart.sh install-validation-library\n   ```\n   - Installs Code Corner's validation library via Composer.\n\n3. **Create Library**:\n   ```bash\n   ./vendor/bin/opencart.sh create-library \u003cname\u003e\n   ```\n   - `\u003cname\u003e`: Name of the library to create.\n\n4. **Create Model**:\n   ```bash\n   ./vendor/bin/opencart.sh create-model \u003cpath\u003e \u003cname\u003e\n   ```\n   - `\u003cpath\u003e`: Path to store the model (e.g., extension/payment).\n   - `\u003cname\u003e`: Name of the model to create.\n\n5. **Create Controller**:\n   ```bash\n   ./vendor/bin/opencart.sh create-controller \u003cpath\u003e \u003cname\u003e\n   ```\n   - `\u003cpath\u003e`: Path to store the controller (e.g., extension/payment).\n   - `\u003cname\u003e`: Name of the controller to create.\n\n6. **Create Language File**:\n   ```bash\n   ./vendor/bin/opencart.sh create-language \u003cpath\u003e \u003cname\u003e\n   ```\n   - `\u003cpath\u003e`: Path to store the language file (e.g., extension/payment).\n   - `\u003cname\u003e`: Name of the language file to create.\n\n7. **Create View Template**:\n   ```bash\n   ./vendor/bin/opencart.sh create-template \u003cpath\u003e \u003cname\u003e\n   ```\n   - `\u003cpath\u003e`: Path to store the template (e.g., extension/payment).\n   - `\u003cname\u003e`: Name of the template to create.\n\n8. **Create OCMOD XML File**:\n   ```bash\n   ./vendor/bin/opencart.sh create-ocmod \u003cname\u003e [-z]\n   ```\n   - `\u003cname\u003e`: Name of the OCMOD XML file.\n   - `[-z]`: Optional flag to create a zip file.\n\n### Notes\n\n- Always ensure paths and names are specified correctly to avoid errors.\n- Modify the script as per your specific requirements and file structure.\n- Ensure proper permissions are set for script execution (`chmod +x opencart.sh`).\n\n---\n\nThis 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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashgupta-dev%2Fopencart-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashgupta-dev%2Fopencart-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashgupta-dev%2Fopencart-shell/lists"}