Composer installer plugin for Rubedo core
About
This Composer installer plugin lets
syou install Rubedo Core as a project dependency with Composer., (*1)
How it works
The plugin will :, (*2)
- clone Rubedo repository into a temporary dir
- retrieve the list of files removed from the previous release installed if a previous version of Rubedo Core has been installed
- remove files and directories, from Rubedo repository, that we don't want to install on our project
- copy the files / directories from the temporary dir into the project's Rubedo root dir
- delete, from the project's Rubedo root dir, the files removed since the previous release installed, if any
Beware that, for this to work, Rubedo Core package version should be typed as "rubedo-core", (*3)
Installation
COMPOSER=composer.project.json php composer.phar require novactive/rubedo-core-installer
Configuration
You can add the following extra parameters into your project's composer file :, (*4)
Configuration |
Type |
Description |
rubedo-root-dir |
string |
Path to rubedo root directory |
rubedo-files-to-ignore |
array of strings |
List of files from Rubedo Core repository that should not be installed (default: .gitignore) |
rubedo-dirs-to-ignore |
array of strings |
List of dirs from Rubedo Core repository that should not be installed (default: .git, extensions) |
Contributing
In order to be accepted, your contribution needs to pass a few controls :, (*5)
- PHP files should be valid
- PHP files should follow the PSR-2 standard
- PHP files should be phpmd and phpcpd warning/error free
To ease the validation process, install the pre-commit framework and install the repository pre-commit hook :, (*6)
pre-commit install
Finally, in order to homogenize commit messages across contributors (and to ease generation of the CHANGELOG), please apply this git commit message hook onto your local repository., (*7)