frosh / shopware-rector
Shopware specific Rector
Package info
github.com/FriendsOfShopware/shopware-rector
Type:rector-extension
pkg:composer/frosh/shopware-rector
0.6.0
2026-08-13 08:13 UTC
Requires
- php: ^8.2
- rector/rector: ^2.6.2
- webmozart/assert: ^1 || ^2
Requires (Dev)
- 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.6.2
Replaces
None
- dev-main
- 0.6.0
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
- dev-chore/php-8.2-phpunit-11
- dev-copilot/add-cartbehavior-isrecalculation-replacement
- dev-chore/remove-devenv
- dev-fix/rector-2.6.2-symfony-sets
- dev-copilot/fix-rector-compatibility
- dev-feature/6.5-checkout
This package is auto-updated.
Last update: 2026-08-13 08:15:35 UTC
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