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 2w 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 26% 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

3337d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17076439?v=4)[Master Klavi](/maintainers/masterklavi)[@masterklavi](https://github.com/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

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