PHP code example of afragen / wp-cli-runner

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

    

afragen / wp-cli-runner example snippets


$vendorDir = '/path/to/vendor';
\Fragen\WP_CLI_Runner\Runner::init( $vendorDir );