PHP code example of heyframe / heyframe-rector

1. Go to this page and download the library: Download heyframe/heyframe-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/ */

    

heyframe / heyframe-rector example snippets


use HeyFrame\Rector\Set\HeyFrameSetList;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        HeyFrameSetList::HEYFRAME_6_7_0,
    ]);
};
bash
# Clone this repo

composer install

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

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