Search by

shopwell / shopwell-rector

GXiaoSong66

Shopwell specific Rector

Package info

github.com/shopwell-shop/shopwell-rector

Type:rector-extension

pkg:composer/shopwell/shopwell-rector

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.5.14 2026-09-27 02:40 UTC

README

This project extends Rector with multiple rules for Shopwell.

See available Shopwell rules

Install

Make sure to install both shopwell/shopwell-rector as well as rector/rector.

composer req shopwell/shopwell-rector --dev

Use Sets

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

use Rector\Config\RectorConfig;
use Frosh\Rector\Set\ShopwareSetList;

return RectorConfig::configure()
    ->withSets([
        ShopwareSetList::SHOPWARE_6_7_0,
    ]);

Use directly the config

# Clone this repo

composer install

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

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