cmskit / package-installer
A composer plugin, to help install packages based on their name-prefix.
Installs: 137
Dependents: 27
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 27
Type:composer-plugin
Requires
- php: >=5.3
- composer-plugin-api: *
This package is not auto-updated.
Last update: 2025-03-25 10:15:08 UTC
README
This is a composer plugin, to install composer packages in custom directories outside the default composer vendor folder.
It relies on a special prefix within the package-name:
Prefixes are installed to following paths:
'admin' => './backend/admin/NAME/'
'extension' => './backend/extensions/NAME/'
'template' => './backend/templates/NAME/'
'wizard' => './backend/wizards/NAME/'
In addition:
- the prefix will be removed and
- hyphens will be replaced by underscores
Examples:
- your-vendor-name/admin-project-setup will be installed to backend/admin/project_setup
- your-vendor-name/extension-usermanagement will be installed to backend/extensions/usermanagement
Example of a package composer.json
{
"name": "cmskit/admin-project-setup",
"type": "library",
"version": "0.6.0",
"description": "This wizard lets you create new projects or upload existing ones",
"license": "GPL",
"authors": [
{
"name": "Christoph Taubmann",
"email": "info@cms-kit.com"
}
],
"homepage": "http://cms-kit.com",
"require": {
"php": ">=5.3.3",
"cmskit/package-installer": "1.0.*@dev",
"cmskit/jquery-ui": "dev-master"
}
}
Example of the composer.json in root to install/update the package
{
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"cmskit/admin-project-setup": "dev-master"
}
}