Composer plugin for automatic installation of Rector extensions.
As this project became a part of a core project (rector/rector
) it shouldn't be installed in addition if you already installed rector/rector
. See comments here.
composer require --dev rector/extension-installer
It's best to set the extension's composer package type to rector-extension
for this plugin to be able to recognize it and to be discoverable on Packagist.
Add rector
key in the extension composer.json
's extra
section:
{
"extra": {
"rector": {
"includes": [
"config/config.php"
]
}
}
}
The extension installer depends on Composer script events, therefore you cannot use --no-scripts
flag.
This package is heavily inspired by phpstan/extension-installer by Ondřej Mirtes. Thank you.