PHP code example of gipfl / cli

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

    

gipfl / cli example snippets


use gipfl\Cli\Process;

Process::setTitle('mydaemon: doing something');

Process::restart();

use gipfl\Cli\Screen;

$screen = Screen::instance();
echo $screen->center($screen->underline('Hello world'));

echo Screen::instance()->colorize('OK', 'green') . ": everything is fine!\n"'