PHP code example of oscarweb / microcli
1. Go to this page and download the library: Download oscarweb/microcli 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/ */
oscarweb / microcli example snippets
#!/usr/bin/php;
if(php_sapi_name() !== 'cli'){
exit();
}
//- enter correct path
sum...');
#!/usr/bin/php;
if(php_sapi_name() !== 'cli'){
exit();
}
//- enter correct path
v) use ($app){
$app->line();
$app->color('success')->write('Hello World');
$app->line();
$app->exit();
});
$app->run($argv);