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

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








XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Blogroll

Lorem ipsum

These 3 boxes are widgets and can be edited through the admin page, just like the sidebar.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Impressum