rector/extension-installer

Composer plugin for automatic installation of Rector extensions

Installs: 229 318

Dependents: 1

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 0

Open Issues: 0

Type:composer-plugin

0.11.1 2021-09-19 10:14 UTC

This package is auto-updated.

Last update: 2021-11-19 10:40:12 UTC


README

Build

Composer plugin for automatic installation of Rector extensions.

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.