Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wilzokch/laravel-progress-bar-lite
Fast Progress Bar for Laravel Command
https://github.com/wilzokch/laravel-progress-bar-lite
laravel laravel-5-package laravel-command laravel5 php progress-bar
Last synced: 3 months ago
JSON representation
Fast Progress Bar for Laravel Command
- Host: GitHub
- URL: https://github.com/wilzokch/laravel-progress-bar-lite
- Owner: wilzokch
- License: gpl-3.0
- Created: 2019-04-02T07:26:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T02:26:53.000Z (over 4 years ago)
- Last Synced: 2024-09-28T20:04:51.754Z (3 months ago)
- Topics: laravel, laravel-5-package, laravel-command, laravel5, php, progress-bar
- Language: PHP
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fast Progress Bar for Laravel Command
=========================
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"
--------
```shell
composer require wilzokch/laravel-progress-bar-lite
```Example
--------
```php
// put in your command class or refer to sample/TestCommand.php
use LiteProgressBarTrait;
```
```php
// 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
```