PHPackages                             avvertix/phptimer - 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. avvertix/phptimer

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

avvertix/phptimer
=================

v0.1.0(11y ago)039AGPL-3.0PHPPHP &gt;=5.3.0

Since Dec 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/avvertix/phptimer)[ Packagist](https://packagist.org/packages/avvertix/phptimer)[ Docs](https://github.com/avvertix/phptimer)[ RSS](/packages/avvertix-phptimer/feed)WikiDiscussions master Synced 1mo ago

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

PhpTimer
========

[](#phptimer)

An easy to use 100% native PHP library to profile PHP code.

**Original Authors**

- [Tamas Kalman](https://github.com/ktamas77)
- [Joseph Bergevin](https://github.com/josephbergevin)

Introduction
============

[](#introduction)

A simple class to keep track of the time it takes to run processes in your code.

Features:

- labeled timers

Installation
============

[](#installation)

With composer
-------------

[](#with-composer)

To add this package as a local, per-project dependency to your project, simply add a dependency on `avvertix/phptimer` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on `PhpTimer`:

```
{
    "require": {
        "avvertix/phptimer": "0.1.x"
    }
}

```

Without composer
----------------

[](#without-composer)

```
	require_once 'src/PhpTimer.php';
```

Usage
=====

[](#usage)

```

  $timer = new PhpTimer();

  $timer->start('cycle');
  for ($i = 0; $i < 100000; $i++) {
    $a *= $i;
  }
  $timer->stop('cycle');

  for ($i = 0; $i < 10; $i++) {
    $timer->start("subloop");
    for ($j = 0; $j < 1000000; $j++) $a = $i * $j;
    $timer->stop("subloop");
  }

  var_dump($timer->getAll());
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

4183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d6c28ebb739784366f8f6751e40d630edef88d0ea094dcbc656351a1417c0a2?d=identicon)[avvertix](/maintainers/avvertix)

---

Top Contributors

[![josephbergevin](https://avatars.githubusercontent.com/u/2521874?v=4)](https://github.com/josephbergevin "josephbergevin (3 commits)")[![avvertix](https://avatars.githubusercontent.com/u/5672748?v=4)](https://github.com/avvertix "avvertix (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avvertix-phptimer/health.svg)

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

PHPackages © 2026

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