PHPackages                             enricospa/microtime-tracker - 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. enricospa/microtime-tracker

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

enricospa/microtime-tracker
===========================

A PHP micro library for time tracking

v0.1.1(5y ago)024MITPHPPHP &gt;=8.0

Since Feb 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/enricospa/microtime-tracker)[ Packagist](https://packagist.org/packages/enricospa/microtime-tracker)[ RSS](/packages/enricospa-microtime-tracker/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Microtime Tracker
=================

[](#microtime-tracker)

A PHP micro library for time tracking.

About
-----

[](#about)

Have you ever find yourself using PHP [`microtime`](https://www.php.net/microtime)function for timing script execution?

`Microtime Tracker` is microtime, with superpowers 💪

Getting Started
---------------

[](#getting-started)

To use this library in your project simply require it with Composer.

### Installation

[](#installation)

Install using Composer

```
composer require enricospa/microtime-tracker
```

### Usage

[](#usage)

Code example:

```
use Enricospa\MicrotimeTracker\Tracker;
use Enricospa\MicrotimeTracker\TimestampHolder;

// Init the tracker
$tracker = new Tracker(new TimestampHolder);

// First snap starts the tracker
$tracker->snap('Start tracking');

// Sleep for a while
usleep(2000000);

$tracker->snap('Slept for a while');

echo "";
echo $tracker->reportConsole();
echo "";
```

*More examples coming...*

License
-------

[](#license)

See the [LICENSE](LICENSE.txt) file for license rights and limitations (MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2

Last Release

1929d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/768892?v=4)[enricospa](/maintainers/enricospa)[@enricospa](https://github.com/enricospa)

---

Top Contributors

[![enricospa](https://avatars.githubusercontent.com/u/768892?v=4)](https://github.com/enricospa "enricospa (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enricospa-microtime-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/enricospa-microtime-tracker/health.svg)](https://phpackages.com/packages/enricospa-microtime-tracker)
```

PHPackages © 2026

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