PEAR-Paket – Console_ProgressBar in Version 0.5 Beta veröffentlicht

PEAR-Paket zum Anzeigen eines Statusbalkens z.B. während eines Downloads.
Offizielle Beschreibung:
The class allows you to display progress bars in your terminal. You can use this for displaying the status of downloads or other tasks that take some time.
Release date: 2007-01-31 16:44 UTC
Release state:beta
changelog:
Added an option specifying the minimum interval between two updates
Fixed bug about too long progressbar on windows
Dependencies:
- PHP Version: PHP 4.0.0 or newer
- PEAR Package: PEAR Installer 1.4.0b1 or newer
Kleines Beispiel:
<?php
require_once 'Console/ProgressBar.php';
$bar = new Console_ProgressBar(
'[%bar%] %percent%', '=>', ' ', 80, 7);
//do some processing here
for ($i = 0; $i <= 7; $i++) {
$bar->update($i);
sleep(1);
}
echo "\n";
?>
Nähere Info und Download auf der Homepage von PEAR