Download the PHP package legionth/reactphp-progressbar without Composer
On this page you can find all versions of the php package legionth/reactphp-progressbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download legionth/reactphp-progressbar
More information about legionth/reactphp-progressbar
Files in legionth/reactphp-progressbar
Package reactphp-progressbar
Short Description A way to create a progressbar stream with ReactPHP
License MIT
Informations about the package reactphp-progressbar
ProgressbarStream
An event-driven progressbar stream that can be added to other streams to show its current progress.
Table of Contents
- Usage
- data-Event
- currentValue-Event
- maximumValue-Event
- Installation
Usage
This stream can be integrate like any other ReactPHP Stream
This example will update the progressbar every 1 second by 1 unit/percent and every 3 seconds by 10 units/percent. This example can be found in the examples folder.
The progressbar stream will never overflow the maximum value. The stream will end if the current value reaches or goes beyond the maximum value.
data-Event
The data
event contains the visualization of the progress bar.
The data emitted by this event is a string.
This event will be emitted if the progressbar is updated.
currentValue-Event
The currentValue
event contains the integer value of the current progressbar.
This event will be emitted if the progressbar is updated.
maximumValue-Event
The maximumValue
event contains the integer value of the maximum reachable value
of the progressbar.
This event will be emitted if the progressbar is updated.
Installation
The recommended way to install this library is through Composer. New to Composer?
This will install the latest supported version: