PHP code example of machiridont / clirec
1. Go to this page and download the library: Download machiridont/clirec 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/ */
machiridont / clirec example snippets
$req=CliRequest::getRequest();
$req->get('a'); //true
$req->get('b'); //true
$req->get('ab'); //null
$req->get('key1'); //'value1'
$req->get(0); //'value2'
shell
php index.php -ab --key1=value1 value2