Shopware specific Rector

Installs: 95 450

Dependents: 2

Suggesters: 0

Security: 0

Stars: 35

Watchers: 2

Forks: 14

Open Issues: 2


0.4.0 2024-05-18 17:03 UTC

This package is auto-updated.

Last update: 2024-06-27 16:37:58 UTC


Rector for Shopware

This project extends Rector with multiple Rules for Shopware specific.

See available Shopware rules


Make sure to install both frosh/shopware-rector as well as rector/rector.

composer req rector/rector frosh/shopware-rector --dev

Use Sets

To add a set to your config, use Frosh\Rector\Set\ShopwareSetList class and pick one of constants:

use Frosh\Rector\Set\ShopwareSetList;

return static function (RectorConfig $rectorConfig): void {

Use directly the config

# Clone this repo

composer install

# Dry Run
./vendor/bin/rector process --config config/shopware-6.5.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin --dry-run

# Normal Run
./vendor/bin/rector process --config config/shopware-6.5.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin