wilzokch / laravel-progress-bar-lite
Fast Progress Bar for Laravel Command.
Installs: 1 337
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-04-21 22:06:35 UTC
README
This is a package to provide a faster progress bar for Laravel 5.1 and above.
Problem
Laravel default progress bar will slow down the proccessing time significantly when your data are too large.
Solution
This progress bar allow you to configure the update frequency of progress bar (default update frequency is 100)
Installation via "composer require"
composer require wilzokch/laravel-progress-bar-lite
Example
// put in your command class or refer to sample/TestCommand.php use LiteProgressBarTrait;
// create progress bar using following function instead of $this->output->createProgressBar(count($data)); $bar = $this->createProgressBar(count($data));
Test result with my PC
using Laravel Progress bar
100000/100000 [============================] 100%
time taken: 79.0038s
using Progress bar lite
100000/100000 [============================] 100%
time taken: 0.5265s