rector / extension-installer
Composer plugin for automatic installation of Rector extensions
Installs: 1 225 288
Dependents: 1
Suggesters: 0
Security: 0
Stars: 15
Watchers: 5
Forks: 1
Open Issues: 0
Type:composer-plugin
Requires
- php: ^8.0
- composer-plugin-api: ^1.1 || ^2.0
Requires (Dev)
- composer/composer: ^2.0
- composer/xdebug-handler: ^2.0
- phpstan/extension-installer: ^1.1
- rector/phpstan-rules: ^0.4
- rector/rector-src: dev-main
- symplify/easy-coding-standard: ^10.0
- symplify/phpstan-extensions: ^10.0
README
Composer plugin for automatic installation of Rector extensions.
Important Note
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.
Usage
composer require --dev rector/extension-installer
Instructions for extension developers
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" ] } } }
Limitations
The extension installer depends on Composer script events, therefore you cannot use --no-scripts
flag.
Acknowledgment
This package is heavily inspired by phpstan/extension-installer by Ondřej Mirtes. Thank you.