PHP code example of robertwesner / awdy

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/ */

    

robertwesner / awdy example snippets




$awdyPath = tempnam(sys_get_temp_dir(), 'awdy_');
file_put_contents($awdyPath, fopen('https://github.com/RobertWesner/awdy/releases/latest/download/AWDY.php', 'r'));

// 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);

00:00:23  418/1337 [==========>                      ] Memory[00.12%]:  15659904/134217728