PHP code example of shopwell / shopwell-rector

1. Go to this page and download the library: Download shopwell/shopwell-rector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

shopwell / shopwell-rector example snippets


use Rector\Config\RectorConfig;
use Shopwell\Rector\Set\ShopwellSetList;

return RectorConfig::configure()
    ->withSets([
        ShopwellSetList::SHOPWELL_6_7_0,
    ]);
bash
# 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