PHPackages                             floknapp/progress-cli - 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. floknapp/progress-cli

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

floknapp/progress-cli
=====================

A simple progress bar for the php cli

014PHP

Since Mar 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/FloKnapp/progress-cli)[ Packagist](https://packagist.org/packages/floknapp/progress-cli)[ RSS](/packages/floknapp-progress-cli/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

progress-cli
============

[](#progress-cli)

A simple progress bar for the php cli

Install
=======

[](#install)

composer require floknapp/progress-cli

How to use
==========

[](#how-to-use)

```
$dataset = ['entry1', 'entry2', ...]; // everything that is countable

$progress = new Progress($dataset); // default progress bar width is 40 chars

for ($i=0; $i < count($dataset); $i++) { // yea yea, i know... no count in for parameters

    [... do things]

    $progress->update($i);

}
```

That's it!

Further configuration
=====================

[](#further-configuration)

You can set a custom width:

```
$progress = new Progress($dataset, 80); // set progress bar width to 80 chars
```

You can show a summary behind the progress bar:

```
$progress = new Progress($dataset, 80, true); // [---------] 100% (250/250)
```

You can set custom start and end surroundings:

```
$progress = new Progress($dataset);
$progress->setProgressLimiter('(', ')'); // results in (---------) 100%
```

You can set a custom progress char (currently only 1 byte chars, no enhanced utf-8 chars supported):

```
$progress = new Progress($dataset);
$progress->setProgressChar('|'); // results in [||||||||||||] 100%
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5d2bd3eecc9c3949d3caf98c4876c8e44c0c73fc80dbc65b55f4d91a5b63eae?d=identicon)[floknapp](/maintainers/floknapp)

---

Top Contributors

[![FloKnapp](https://avatars.githubusercontent.com/u/3774820?v=4)](https://github.com/FloKnapp "FloKnapp (2 commits)")

---

Tags

barphp-cliprogressprogress-cliprogressbar

### Embed Badge

![Health badge](/badges/floknapp-progress-cli/health.svg)

```
[![Health](https://phpackages.com/badges/floknapp-progress-cli/health.svg)](https://phpackages.com/packages/floknapp-progress-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
