PHP code example of krzysztofzylka / console

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

    

krzysztofzylka / console example snippets


\Krzysztofzylka\Console\Prints::print('value');

\Krzysztofzylka\Console\Prints::sprint('value');

\Krzysztofzylka\Console\Args::getArgs($argv)

$help = new \Krzysztofzylka\Console\Generator\Help();
$help->addHeader('Header');
$help->addHelp('Help', 'Help command');
$help->addHelp('Test', 'Test message');
$help->addHeader('Parameters', 'yellow');
$help->addHelp('-parameters', 'test parameters');
$help->addHelp('-very long parameters', 'test parameters');
$help->render();

$input = \Krzysztofzylka\Console\Form::input();
$input = \Krzysztofzylka\Console\Form::input('Firstname:');

\Krzysztofzylka\Console\Form::prompt('Continue?');