php cli progress bar
v2.1.0
Bilah kemajuan untuk skrip baris PHP perintah.

Untuk menginstal, cukup jalankan perintah komposer berikut.
composer require divineomega/php-cli-progress-bar
Cuplikan kode berikut menunjukkan contoh penggunaan dasar.
$ max = 250 ;
$ progressBar = new DivineOmega CliProgressBar ProgressBar ;
$ progressBar -> setMaxProgress ( $ max );
for ( $ i = 0 ; $ i < $ max ; $ i ++) {
usleep ( 200000 ); // Instead of usleep, process a part of your long running task here.
$ progressBar -> advance ()-> display ();
}
$ progressBar -> complete ();