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 4w 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 13% 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

[illuminate/console

The Illuminate Console package.

13046.0M6.3k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

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