frosh / shopware-rector
Shopware specific Rector
Installs: 308 451
Dependents: 4
Suggesters: 0
Security: 0
Stars: 45
Watchers: 3
Forks: 17
Open Issues: 1
Type:rector-extension
pkg:composer/frosh/shopware-rector
Requires
- php: ^8.1
- rector/rector: ~2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.57
- phpunit/phpunit: ^9.5
- symplify/easy-coding-standard: ~11.2
Conflicts
- rector/rector: <2.0
This package is auto-updated.
Last update: 2025-11-01 13:57:41 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