Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beyondit/opencart-extension-installer
Install OpenCart Extensions with Composer
https://github.com/beyondit/opencart-extension-installer
composer composer-plugin opencart
Last synced: about 2 months ago
JSON representation
Install OpenCart Extensions with Composer
- Host: GitHub
- URL: https://github.com/beyondit/opencart-extension-installer
- Owner: beyondit
- License: gpl-3.0
- Created: 2016-06-21T07:02:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-29T20:48:50.000Z (about 1 year ago)
- Last Synced: 2024-10-20T10:11:37.593Z (2 months ago)
- Topics: composer, composer-plugin, opencart
- Language: PHP
- Size: 76.2 KB
- Stars: 11
- Watchers: 6
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Install OpenCart Extensions with Composer
## Publish for Composer
### Configuration Extras
|Variable|Description|
|---|---|
|`src-dir`|Base directory of the source extension files, withing the composer package|
|`mappings`|Each file which needs to be managed (install, update, uninstall) by composer|
|`installers`|OpenCart Extensions can have installers: php or xml currently supported (sql not yet)|### Example
```
{
"name": "vendor/project-name",
"type": "opencart-extension",
"extra": {
"src-dir" : "src/upload",
"mappings" : [
"catalog/controller/vendor/controller_name.php",
"catalog/model/vendor/other_model.php"
],
"installers" : {
"php" : "src/install.php" ,
"xml" : "src/install.xml"
}
},
"require": {
"beyondit/opencart-extension-installer": "*"
}
}
```## Composer Root Project Extras
|Variable|Description|
|---|---|
|`opencart-dir`|set the OpenCart directory in which the extension should be installed|