Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.58 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.58 KB

Composer Modman

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

Installation

  1. Install composer
  2. Add vdubyna/composer-modman package as required, version dev-master
  3. Run tests phpunit

CI status

See more info on Travis CI

Build Status

Usage

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

Filesmap

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"
    }

Planned features

  • Support masks for file names in filesmap
  • Default locations (application|package) for most used applications
  • Validate filesmap.json
  • Uninstall package