PHPackages                             devgo/php-performance - 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. devgo/php-performance

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

devgo/php-performance
=====================

Class responsible for assisting in performance evaluation of a PHP code.

1.2(2y ago)2117MITPHPPHP &gt;=7.4.0

Since Feb 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/goncalogoncalves/php-performance)[ Packagist](https://packagist.org/packages/devgo/php-performance)[ Docs](https://github.com/goncalogoncalves/php-performance)[ RSS](/packages/devgo-php-performance/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

[![Open Source Love](https://camo.githubusercontent.com/f971c555060afed15a9defa40392ebbd417d5ab07c818440208c9d3e30610230/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76322f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/ellerbrock/open-source-badges/)[![MIT Licence](https://camo.githubusercontent.com/fabb40ab22588a0746bb0916ed92739171bde7fb31f281c627aa588bcba62cc2/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e7376673f763d313033)](https://opensource.org/licenses/mit-license.php)

php-performance
===============

[](#php-performance)

Class responsible for assisting in performance evaluation of a PHP code

#### Example:

[](#example)

```
use Devgo\Performance;

$performance = new Performance();

$performance->addStep('1');
usleep(200000); // 0.20s
$performance->addStep('2');
usleep(100000); // 0.10s
$performance->addStep('3');
usleep(400000); // 0.40s
$performance->addStep('4');
usleep(300000); // 0.30s
$performance->addStep('5');

var_dump($performance->buildReport());
```

#### Output:

[](#output)

```
REPORT PERFORMANCE

FROM 1 to 2:  0.2 seconds        (memory: 420.66 Kb / peak: 468.52 Kb)
FROM 2 to 3:  0.11 seconds       (memory: 421.11 Kb / peak: 468.52 Kb)
FROM 3 to 4:  0.4 seconds        (memory: 421.55 Kb / peak: 468.52 Kb)
FROM 4 to 5:  0.31 seconds       (memory: 422 Kb / peak: 468.52 Kb)

Execution time: 1.02 seconds (minutes: 0.02)
Start: 2024-02-14 14:34:20
End: 2024-02-14 14:34:21

```

#### Install with composer:

[](#install-with-composer)

```
composer require devgo/php-performance

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

859d ago

PHP version history (3 changes)v1.0.0PHP &gt;=5.3.0

1.1PHP &gt;=7.3.0

1.2PHP &gt;=7.4.0

### Community

Maintainers

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

---

Top Contributors

[![goncalogoncalves](https://avatars.githubusercontent.com/u/1330622?v=4)](https://github.com/goncalogoncalves "goncalogoncalves (10 commits)")

---

Tags

performancephpphpperformanceEvaluation

### Embed Badge

![Health badge](/badges/devgo-php-performance/health.svg)

```
[![Health](https://phpackages.com/badges/devgo-php-performance/health.svg)](https://phpackages.com/packages/devgo-php-performance)
```

###  Alternatives

[nilportugues/php_backslasher

Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.

889.3k20](/packages/nilportugues-php-backslasher)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21422.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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