php cli progress bar
v2.1.0
명령 줄 PHP 스크립트의 진행률 표시 줄.

설치하려면 다음 작곡 명령을 실행하십시오.
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 ();