1. Go to this page and download the library: Download rogerthomas84/ohconsole 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/ */
rogerthomas84 / ohconsole example snippets
OhConsole\OhConsole;
// Map any injectables that you want to pass
$injectables = array(
'config' => array(
// Put any configuration here.
)
);
// Start OhConsole
$command = new OhConsole($argv, $injectables);
// Run OhConsole
$command->run();