PHP code example of brio / helpers

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

    

brio / helpers example snippets


foreach($myvar as $var) {
    Embryo\cliProgressBar($currentIndex, $total);
}

Embryo\cliPrompt('Do you want to continue ?');

Embryo\cliPrompt('Do you want to continue ?', ['continue', 'abort']);

$answer = Embryo\cliQuestion('What is the airspeed velocity of an unladen swallow ?');

foreach($myvar as $var) {
    Embryo\cliSpinner('Manipulating data');
    // Do something
}
Embryo\cliSpinner('Done !', true);


$table = [
    [
        'id'    => 1,
        'name'  => 'John Doe',
        'email' => '[email protected]',
    ],
    [
        'id'    => 2,
        'name'  => 'Jane Doe',
        'email' => '[email protected]',
    ],
];

echo Embryo\cliTable($table);

\Embryo\d($myVar);

$url = \Embryo\seoUrl("I'm giving my résumé to the café, Señor !");
// $url equals 'i-m-giving-my-resume-to-the-cafe-senor'

$str = \Embryo\strComplete('test', 10, ' ');
// $str is 'test      '

php myScript.php -action makeSomething -verbose