php cli progress bar
v2.1.0
コマンドラインのPHPスクリプトの進行状況バー。

インストールするには、次のComposerコマンドを実行するだけです。
composer require divineomega/php-cli-progress-bar
次のコードスニペットには、基本的な使用例が表示されます。
$ 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 ();