PHPackages                             wallacemaxters/timer - 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. wallacemaxters/timer

Abandoned → [wallacemaxters/timespan](/?search=wallacemaxters%2Ftimespan)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wallacemaxters/timer
====================

Timer is a library for work with times, specially greather than 24 hours

2.2.1(10y ago)4113MITPHPPHP &gt;=5.4.0

Since Nov 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (23)Used By (0)

\#WallaceMaxters\\Timer Library

This is a library to work only with time in PHP.

Sometimes we need to work with hours, passing 24 in php, but the DateTime class or other functions to date do not have a satisfactory solution;

So developed the Timer library.

With it you can work with the time very simply:

```
use WallaceMaxters\Timer\Time;

$time = Time::create(0, 0, 10);

$time->format('%h:%i%s'); // '00:00:10'

$time->addSeconds(30);

$time->format(); // '00:00:40'

$time->addSeconds(-50);

$time->format('%h:%i%s'); // '-00:00:10'
```

If necessary you can also also use the Collection class, to facilitate some operations over time.

```
use WallaceMaxters\Timer\Collection;

$collection = new Collection;

$collection[] = Time::create(0, 10, 0);

$collection[] = Time::createFromString('10 seconds');

$collection[] = Time::createFromFormat('%h:%i', '00:50');

$collection->sum(); // new Time(0, 11, 0);

$collection->min(); // new time(0, 0, 10);
```

An example for time greather than 24 hours:

```
// DateTime
$date = DateTime::createFromFormat('25:00:00');

var_dump($date->format('H:i:s')); // 01:00:00

// WallaceMaxters\Timer\Timer

$time = Time::createFromFormat('%h:%i:%s', '26:00:00');

var_dump($time->format()); // '26:00:00'
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Total

22

Last Release

3661d ago

Major Versions

1.2.x-dev → 2.0.02016-04-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/983cda3e30a5a58d250f3bef7360267e0185b46e891f2f08e6683d0af9a9ddc7?d=identicon)[wallacemaxters](/maintainers/wallacemaxters)

---

Top Contributors

[![wallacemaxters](https://avatars.githubusercontent.com/u/5245865?v=4)](https://github.com/wallacemaxters "wallacemaxters (108 commits)")

### Embed Badge

![Health badge](/badges/wallacemaxters-timer/health.svg)

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

###  Alternatives

[digital-creative/expandable-table-row

Provides an easy way to append extra data to each row of your resource tables.

1818.5k](/packages/digital-creative-expandable-table-row)

PHPackages © 2026

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