PHPackages                             petenelson/progress-estimator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. petenelson/progress-estimator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

petenelson/progress-estimator
=============================

PHP class to estimate time remaining for a list of tasks

1.0.1(1y ago)425.3k[1 issues](https://github.com/petenelson/progress-estimator/issues)MITPHPCI failing

Since Apr 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/petenelson/progress-estimator)[ Packagist](https://packagist.org/packages/petenelson/progress-estimator)[ RSS](/packages/petenelson-progress-estimator/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Progress Estimator
==================

[](#progress-estimator)

PHP library to estimate time remaining for a list of tasks.

[![Percentage of issues still open](https://camo.githubusercontent.com/60e1acbc3c4cfca6f78562bf53bb4e71660069bd62e8f11bbdb48c4003665fe2/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f706574656e656c736f6e2f70726f67726573732d657374696d61746f722e737667)](http://isitmaintained.com/project/petenelson/progress-estimator "Percentage of issues still open")

When processing a batch of items that takes a long time to run, this library can be used to to calculate and display the estimated time remaining.

```
Processing 12 items
[1/12]: Bacon ipsum dolor amet (0:35)
[2/12]: Cow porchetta labore shankle (0:33)
[3/12]: Filet mignon porchetta eiusmod tri-tip (0:28)
[4/12]: Venison aliqua, ad brisket pariatur (0:22)
[5/12]: Turkey reprehenderit picanha (0:18)
[6/12]: Turducken fatback ground round (0:16)
[7/12]: Strip steak leberkas laborum (0:12)
[8/12]: Pork belly excepteur buffalo (0:09)
[9/12]: ham chuck ipsum nostrud jerky (0:07)
[10/12]: Rump shank jalapeno (0:05)
[11/12]: Pancetta chicken do spare ribs, (0:02)
[12/12]: Meatball tenderloin picanha (0:00)

```

Installation and Usage
----------------------

[](#installation-and-usage)

This package can be installed via composer.

```
composer require petenelson/progress-estimator

```

Here is some example code below, and be sure to check the [examples.php file](examples.php) for a working implementation.

```
require_once __DIR__ . '/vendor/autoload.php';

$items = get_large_list_of_items();
$count = count($items);

// Create the progress estimator.
$estimator = new \PHPEstimator\ProgressEstimator($count);

// Loop through the list of items to process.
for ($i=0; $i < $count; $i++) {

	// Perform some work on each item.
	some_long_running_process_here($items[$i]);

	// Increments the counter and saves the execution time of that item.
	$estimator->tick();

	// Display the current item processed and estimated time remaining.
	$output = sprintf(
		'Processed: %1$s (%2$s)' . PHP_EOL,
		$i,
		$estimator->formatTime($estimator->timeLeft())
	);

	echo $output;
}

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~2096 days

Total

2

Last Release

487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5db2e6f9d813e0e0ded1526b8dc59c17c8af532ddb2634bfe9ab09711b9bc8b4?d=identicon)[petenelson](/maintainers/petenelson)

---

Top Contributors

[![petenelson](https://avatars.githubusercontent.com/u/1757075?v=4)](https://github.com/petenelson "petenelson (19 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/petenelson-progress-estimator/health.svg)

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

###  Alternatives

[phpjuice/slopeone

PHP implementation of the Weighted Slope One rating-based collaborative filtering scheme.

868.7k](/packages/phpjuice-slopeone)[thisisbd/silverstripe-fontawesome-iconpickerfield

Font Awesome Icon Picker for SilverStripe 3.1.x based on http://mjolnic.com/fontawesome-iconpicker

143.3k1](/packages/thisisbd-silverstripe-fontawesome-iconpickerfield)

PHPackages © 2026

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