friendsofheycart/heycart-rector

HeyCart specific Rector

0.5.6 2025-07-28 13:40 UTC

This package is auto-updated.

Last update: 2025-07-28 13:41:01 UTC


README

This project extends Rector with multiple Rules for HeyCart specific.

See available HeyCart rules

Install

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

composer req frosh/heycart-rector --dev

Use Sets

To add a set to your config, use FriendsOfHeyCart\Rector\Set\HeyCartSetList class and pick one of constants:

use FriendsOfHeyCart\Rector\Set\HeyCartSetList;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        HeyCartSetList::SHOPWARE_6_7_0,
    ]);
};

Use directly the config

# Clone this repo

composer install

# Dry Run
./vendor/bin/rector process --config config/heycart-6.7.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin --dry-run

# Normal Run
./vendor/bin/rector process --config config/heycart-6.7.0.php --autoload-file [SHOPWARE]/vendor/autoload.php [SHOPWARE]/custom/plugins/MyPlugin