frosh/shopware-rector

Shopware specific Rector

Maintainers

👁 shyim

Package info

github.com/FriendsOfShopware/shopware-rector

Type:rector-extension

pkg:composer/frosh/shopware-rector

Statistics

Installs: 451 435

Dependents: 6

Suggesters: 0

Stars: 47

Open Issues: 1

0.5.9 2026-01-14 16:03 UTC

Requires

Suggests

None

Provides

None

Conflicts

Replaces

None

mit a3c6453c351c8a2586af2ed80f484d4c5c0ac432


README

This project extends Rector with multiple Rules for Shopware specific.

See available Shopware rules

Install

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

composer req 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 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