1. Go to this page and download the library: Download robertwesner/awdy 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/ */
// Dynamic size takes the full shell window and reacts to size changes
AWDY::setUp(new SimpleTemplate());
// Fixed width 80 and height 32
AWDY::setUp(new SimpleTemplate(), 80, 32);
// Only as percentage
AWDY::progress($i / $maxAmount);
// Including current and maximum value
AWDY::progress($i / $maxAmount, $i, $maxAmount);
// Unformatted
AWDY::echo("This is some simple informative text!\n");
// Printf formatting
AWDY::printf('You are %d steps away from your destiny! ', $myNumber);