PHPackages                             pointybeard/helpers-cli-progressbar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. pointybeard/helpers-cli-progressbar

ActiveLibrary[CLI &amp; Console](/categories/cli)

pointybeard/helpers-cli-progressbar
===================================

Utility for rendering a progress bar to the command line in PHP

1.1.0.3(6y ago)11.4k↓58.3%11MITPHPPHP &gt;=7.2

Since May 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pointybeard/helpers-cli-progressbar)[ Packagist](https://packagist.org/packages/pointybeard/helpers-cli-progressbar)[ Docs](https://github.com/pointybeard/helpers-cli-progressbar)[ RSS](/packages/pointybeard-helpers-cli-progressbar/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (1)

PHP Helpers: Command-line Progress Bar
======================================

[](#php-helpers-command-line-progress-bar)

- Version: v1.1.0
- Date: May 23 2019
- [Release notes](https://github.com/pointybeard/helpers-cli-progressbar/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-cli-progressbar)

A simple, yet powerful, class for rendering progress bars to the command-line.

Installation
------------

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). 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

[](#requirements)

This library makes use of the [PHP Helpers: Sliding Average](https://github.com/pointybeard/helpers-statistics-slidingaverage) (`pointybeard/helpers-statistics-slidingaverage`), [PHP Helpers: Command-line Colours](https://github.com/pointybeard/helpers-cli-colour) (`pointybeard/helpers-cli-colour`), and [PHP Helpers: Time Functions](https://github.com/pointybeard/helpers-functions-time) (`pointybeard/helpers-functions-time`) packages. They are installed automatically via composer.

To include all the [PHP Helpers](https://github.com/pointybeard/helpers) packages on your project, use `composer require pointybeard/helpers` or add `"pointybeard/helpers": "~1.0"` to your composer file.

Usage
-----

[](#usage)

Include this library in your PHP files with `use pointybeard\Helpers\Cli\ProgressBar` and instanciate the `ProgressBar\ProgressBar` class like so:

```
