friendsofonlishop/onlishop-rector

Onlishop specific Rector

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:rector-extension

pkg:composer/friendsofonlishop/onlishop-rector

0.5.7 2025-11-01 11:42 UTC

This package is auto-updated.

Last update: 2025-11-01 11:43:14 UTC


README

This project extends Rector with multiple Rules for Onlishop specific.

See available Onlishop rules

Install

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

composer req frosh/onlishop-rector --dev

Use Sets

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

use Rector\Config\RectorConfig;
use FriendsOfOnlishop\Rector\Set\OnlishopSetList;

return RectorConfig::configure()
    ->withSets([
        OnlishopSetList::ONLISHOP_6_7_0,
    ]);

Use directly the config

# Clone this repo

composer install

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

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