It was inspired by modman utility written on PHP and adolpted to use as composer package.
- Install modules into existed applications
- Back changes from application to package repository
- It can work with any source while files map exists
- Install
composer
- Add
vdubyna/composer-modman
package as required, version dev-master - Run tests
phpunit
See full list of commands
./vendor/bin/composer-modman list
Install package
into application
./vendor/bin/composer-modman install package_name --application-dir=/absolute/path/to/application --package-dir=/absolute/path/to/package
Update package
from application
./vendor/bin/composer-modman commit package_name --application-dir=/absolute/path/to/application --package-dir=/absolute/path/to/package
Describes how to map files of the package
into application
. It should be written in json
format
and named filesmap.json
.
Example:
{
"src/file1.txt": "file1.txt",
"src/app/file1.txt": "app/file1.txt"
}
- Support masks for file names in filesmap
- Default locations (application|package) for most used applications
- Validate
filesmap.json
- Uninstall package