frosh / shopware-rector
Shopware specific Rector
Package info
github.com/FriendsOfShopware/shopware-rector
Type:rector-extension
pkg:composer/frosh/shopware-rector
0.7.0
2026-11-02 04:08 UTC
Requires
- php: ^8.2
- rector/rector: ^2.8
- webmozart/assert: ^1 || ^2
Requires (Dev)
- boundwize/structarmed: ^0.17.2
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.5
- symplify/easy-coding-standard: ~11.2
Suggests
None
Provides
None
Conflicts
- rector/rector: <2.8
Replaces
None
README
This project extends Rector with multiple Rules for Shopware specific.
See available Shopware rules
For migrations already supported on Shopware 6.7.0.0, see the 6.7 forward compatibility guide.
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