shopwell / shopwell-rector
Shopwell specific Rector
Package info
github.com/shopwell-shop/shopwell-rector
Type:rector-extension
pkg:composer/shopwell/shopwell-rector
0.5.17
2026-09-30 08:04 UTC
Requires
- php: ^8.2
- rector/rector: ^2.6.2
- 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.6.2
Replaces
None
README
This project extends Rector with multiple Rules for Shopwell specific.
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 Shopwell\Rector\Set\ShopwellSetList class and pick one of constants:
use Rector\Config\RectorConfig; use Shopwell\Rector\Set\ShopwellSetList; return RectorConfig::configure() ->withSets([ ShopwellSetList::SHOPWELL_6_7_0, ]);
Use directly the config
# Clone this repo composer install # Dry Run ./vendor/bin/rector process --config config/shopwell-6.7.0.php --autoload-file [SHOPWELL]/vendor/autoload.php [SHOPWELL]/custom/plugins/MyPlugin --dry-run # Normal Run ./vendor/bin/rector process --config config/shopwell-6.7.0.php --autoload-file [SHOPWELL]/vendor/autoload.php [SHOPWELL]/custom/plugins/MyPlugin