1. Go to this page and download the library: Download chipslays/clify 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/ */
chipslays / clify example snippets
#!/usr/bin/env php
use Clify\Cli;
>toArray());
Array
(
[data] => hello world
[save] => ./path/to/file.txt
[o] => 1
[append] => 1
[val] => test
[some] => spaces here
[lonely] => 1
)
use Clify\Cli;
rror('text');
success('text');
info('text');
warning('text');
$cli->get('some_arg', 'default value');
use Clify\Cli;
"{blue}Blue text");
use Clify\Cli;
rize("{blue}Blue text{reset}");
echo Cli::colorize("{black}{bg:yellow} Black text on Yellow background{reset}");
// At the end, it will automatically add {reset}
echo Cli::colorizeLine("{blue}Blue text");