rector/extension-installer

Composer plugin for automatic installation of Rector extensions

Maintainers

πŸ‘ TomasVotruba

Package info

github.com/rectorphp/extension-installer

Type:composer-plugin

pkg:composer/rector/extension-installer

Statistics

Installs: 1 707 568

Dependents: 2

Suggesters: 0

Stars: 16

Open Issues: 0

1.0.0 2026-05-27 05:12 UTC

Requires

  • php: ^8.3
  • composer-plugin-api: ^2.0

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 19d19b6ee4f829b0da86eee1f8dd0a3fc29409de

This package is auto-updated.

Last update: 2026-05-27 05:13:27 UTC


README

πŸ‘ Build

Composer plugin for automatic installation of Rector extensions.

Important Note

This functionality is now part of rector/rector core, so you don't need to install this plugin separately if rector/rector is already installed. See comments here.

Usage

composer require --dev rector/extension-installer

Instructions for extension developers

Set the extension's Composer package type to rector-extension so this plugin can recognize it and so it becomes discoverable on Packagist.

Add a rector key to the extension's composer.json extra section:

{
 "extra": {
 "rector": {
 "includes": [
 "config/config.php"
 ]
 }
 }
}

Limitations

The extension installer depends on Composer script events, so you cannot use the --no-scripts flag.

Acknowledgment

This package is heavily inspired by phpstan/extension-installer by OndΕ™ej Mirtes. Thank you.