Skip to content

Custom Composer Installer for installing OpenCart Extensions

License

Notifications You must be signed in to change notification settings

opencart-plugins/extension-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": {
        "opencart-plugins/extension-installer": "*"
    }
}
```

Composer Root Project Extras

Variable Description
opencart-install-dir set the OpenCart directory in which the extension should be installed

Example Extras

```
{
    "extra": {
        "opencart-install-dir": "docroot"
    }
}
```

About

Custom Composer Installer for installing OpenCart Extensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages