PHP code example of hvolschenk / cliphf

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

    

hvolschenk / cliphf example snippets


use Hvolschenk\Cliphf;

Output::format('{italic}Checking config{/italic}...');
if ($something === true) {
  Output::format('{bold}{green}Done.{/green}{/bold}')
}

$name = Input::text('Please enter your name: ');
$password = Input::password('Secret password: ');

use Hvolschenk\Cliphf;

$name = Input::text('{bold}{underline}Dangerous input:{/underline}{/bold}');

$ php composer.phar