Download the PHP package pointybeard/helpers-cli-progressbar without Composer
On this page you can find all versions of the php package pointybeard/helpers-cli-progressbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pointybeard/helpers-cli-progressbar
More information about pointybeard/helpers-cli-progressbar
Files in pointybeard/helpers-cli-progressbar
Package helpers-cli-progressbar
Short Description Utility for rendering a progress bar to the command line in PHP
License MIT
Homepage https://github.com/pointybeard/helpers-cli-progressbar
Informations about the package helpers-cli-progressbar
PHP Helpers: Command-line Progress Bar
- Version: v1.1.0
- Date: May 23 2019
- Release notes
- GitHub repository
A simple, yet powerful, class for rendering progress bars to the command-line.
Installation
This library is installed via Composer. To install, use composer require pointybeard/helpers-cli-progressbar
or add "pointybeard/helpers-cli-progressbar": "~1.0"
to your composer.json
file.
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Requirements
This library makes use of the PHP Helpers: Sliding Average (pointybeard/helpers-statistics-slidingaverage
), PHP Helpers: Command-line Colours (pointybeard/helpers-cli-colour
), and PHP Helpers: Time Functions (pointybeard/helpers-functions-time
) packages. They are installed automatically via composer.
To include all the PHP Helpers packages on your project, use composer require pointybeard/helpers
or add "pointybeard/helpers": "~1.0"
to your composer file.
Usage
Include this library in your PHP files with use pointybeard\Helpers\Cli\ProgressBar
and instanciate the ProgressBar\ProgressBar
class like so:
Placeholders
The format of the progress bar can be modified using the format
method. The default format is {{PROGRESS_BAR}} {{PERCENTAGE}}% {{COMPLETED}}/{{TOTAL}} ({{ELAPSED_TIME}} elapsed, approx. {{REMAINING_TIME}} remaining)
.
Placeholders available are:
- PROGRESS_BAR
- PERCENTAGE
- COMPLETED
- TOTAL
- ELAPSED_TIME
- REMAINING_TIME
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
Contributing
We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved.
License
"PHP Helpers: Command-line Progress Bar" is released under the MIT License.
All versions of helpers-cli-progressbar with dependencies
pointybeard/helpers-cli-colour Version ~1.0
pointybeard/helpers-statistics-slidingaverage Version ~1.0
pointybeard/helpers-functions-time Version ~1.0
pointybeard/helpers-functions-cli Version ~1.1
pointybeard/helpers-functions-strings Version ~1.1