PHPackages                             masterklavi/phpprogress - 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. masterklavi/phpprogress

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

masterklavi/phpprogress
=======================

Here is a PHP function that shows progress in nice view in command-line interface (CLI)

v0.3.0(9y ago)0241PHPPHP &gt;=5.4.0

Since May 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/masterklavi/phpprogress)[ Packagist](https://packagist.org/packages/masterklavi/phpprogress)[ RSS](/packages/masterklavi-phpprogress/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP Progress
============

[](#php-progress)

Using it you can give nice progress view in command-line interface (CLI)

Example
-------

[](#example)

```
use masterklavi\phpprogress\Progress;

// init progress of 500 tasks
$progress = new Progress(500);

for ($i = 0; $i < 500; $i++)
{
    // some task
    usleep(rand(0, 50000));

    // mark that a task was completed
    $progress->show();
}
```

Requirements
------------

[](#requirements)

- PHP version 5.4.0 or higher

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

[](#installation)

### Using Composer

[](#using-composer)

Get the package:

```
$ composer require masterklavi/phpprogress

```

### Manual Installation

[](#manual-installation)

Clone git repository:

```
$ git clone https://github.com/masterklavi/phpprogress.git

```

or download the package at

Small Documentation
-------------------

[](#small-documentation)

- `Progress::__construct($max)` where `$max` - max value (count of tasks)
- `Progress::show($offset_or_value = 1, $progress_type = Progress::TYPE_OFFSET, $status = Progress::STATUS_OK)`where
    - `$offset_or_value` - offset (when type=OFFSET) or value (when type=VALUE)
    - `$progress_type` can be `Progress::TYPE_OFFSET` or `Progress::TYPE_VALUE`
    - `$status` can be `Progress::STATUS_OK`, `Progress::STATUS_SKIP` or `Progress::STATUS_FAIL`

```
$progress = new Progress(10);
$progress->show(); // offset = 1, so value = 1
$progress->show(2); // offset = 2, so value = 3
$progress->show(6, Progress::TYPE_VALUE); // value = 6
$progress->show(4); // offset = 2, so value = 10
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3290d ago

### Community

Maintainers

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

---

Top Contributors

[![masterklavi](https://avatars.githubusercontent.com/u/17076439?v=4)](https://github.com/masterklavi "masterklavi (16 commits)")

### Embed Badge

![Health badge](/badges/masterklavi-phpprogress/health.svg)

```
[![Health](https://phpackages.com/badges/masterklavi-phpprogress/health.svg)](https://phpackages.com/packages/masterklavi-phpprogress)
```

###  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)
