rector/rector-installer

This package is abandoned and no longer maintained. The author suggests using the rector/extension-installer package instead.

Composer plugin for automatic installation of Rector extensions

Maintainers

Package info

github.com/rectorphp/extension-installer

Type:composer-plugin

pkg:composer/rector/rector-installer

Statistics

Installs: 159 816

Dependents: 0

Suggesters: 0

Stars: 16

Open Issues: 0

1.0.0 2026-05-27 05:12 UTC

This package is auto-updated.

Last update: 2026-05-27 05:13:26 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.