PHPackages                             pyrsmk/illuminator - 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. pyrsmk/illuminator

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

pyrsmk/illuminator
==================

Simple chronometers

3.0.2(6y ago)015[2 PRs](https://github.com/pyrsmk/Illuminator/pulls)1MITPHPPHP &gt;=7.2.0

Since Jul 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pyrsmk/Illuminator)[ Packagist](https://packagist.org/packages/pyrsmk/illuminator)[ RSS](/packages/pyrsmk-illuminator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (1)

Illuminator
===========

[](#illuminator)

A collection of simple chronometers.

Install
-------

[](#install)

```
composer require pyrsmk/illuminator
```

Illuminator\\Chrono
-------------------

[](#illuminatorchrono)

Here's the base chrono.

```
$chrono = new Illuminator\Chrono();
// Start!
$chrono->start();
// Stop the chrono for some time...
$chrono->stop();
// Resume the chrono
$chrono->start();
// Return the time in seconds
$chrono->read();
// Reset the still running chrono
$chrono->reset();
// Return the reseted time
$chrono->read();
// Completely stop and reset the chrono
$chrono->stop();
$chrono->reset();
```

The time is returned as a [microtime](http://php.net/manual/en/function.microtime.php) float number, in seconds. You can also read it in milliseconds with:

```
$chrono->readAsMilliseconds();
```

Illuminator\\LazyChrono
-----------------------

[](#illuminatorlazychrono)

A lazy chrono that you don't need to start or whatever.

```
$chrono = new Illuminator\LazyChrono();
usleep(1000);
$chrono->read();
```

Illuminator\\TimedTask
----------------------

[](#illuminatortimedtask)

With that class, you can time a specific task.

```
$timedTask = new TimedTask(function () {
    usleep(1000);
});
$timedTask->read();
```

Note that the callback will be run each time `read()` is called.

License
-------

[](#license)

Released under the [MIT license](http://dreamysource.mit-license.org).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

5

Last Release

2463d ago

Major Versions

2.0.1 → 3.0.02019-08-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f97d81cfd6d30587cdae24925bc0899331394d723d04ee4b76eb9435a565fe9?d=identicon)[pyrsmk](/maintainers/pyrsmk)

---

Tags

timetimerstopwatchchronochronometer

### Embed Badge

![Health badge](/badges/pyrsmk-illuminator/health.svg)

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

430168.9M205](/packages/symfony-clock)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[icecave/chrono

A date &amp; time library that is decoupled from the system clock.

54188.9k7](/packages/icecave-chrono)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[ayesh/php-timer

High-resolution and monotonic stop-watch for all your needs. Supports timer start, pause, resume, stop, read, and minimal conversion.

22226.4k11](/packages/ayesh-php-timer)[dragon-code/benchmark

Simple comparison of code execution speed between different options

11934.7k5](/packages/dragon-code-benchmark)

PHPackages © 2026

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