PHPackages                             traderinteractive/util-time - 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. traderinteractive/util-time

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

traderinteractive/util-time
===========================

A collection of utility classes for working with times

v4.0.0(3y ago)2104.5k↓29.1%22MITPHPPHP ^7.3 || ^8.0

Since Oct 5Pushed 3y ago8 watchersCompare

[ Source](https://github.com/traderinteractive/util-time-php)[ Packagist](https://packagist.org/packages/traderinteractive/util-time)[ RSS](/packages/traderinteractive-util-time/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (2)

util-time-php
=============

[](#util-time-php)

[![Build Status](https://camo.githubusercontent.com/5ed70b28296048ca10a14e494c3825ef0ccb88418125515d6b2ff4a3779872fc/68747470733a2f2f7472617669732d63692e6f72672f747261646572696e7465726163746976652f7574696c2d74696d652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/traderinteractive/util-time-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3272bc865bc8c6baad83dbcdfdd44dc0f32af73a102d6df22cbaaabbe5e2f8bf/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f747261646572696e7465726163746976652f7574696c2d74696d652d7068702e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/traderinteractive/util-time-php/)[![Coverage Status](https://camo.githubusercontent.com/51d5b9aef7ae3a9b4c5aaf73167370250ba2f48670677c1606281a94d7196197/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f747261646572696e7465726163746976652f7574696c2d74696d652d7068702f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/traderinteractive/util-time-php?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/2730328c516068dd2c69c0f60b24083106e8e5b81c358bc76d02978978ac59e0/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747261646572696e7465726163746976652f7574696c2d74696d652e7376673f7374796c653d666c6174)](https://packagist.org/packages/traderinteractive/util-time)[![Total Downloads](https://camo.githubusercontent.com/8d167ac0c7698a29d2a2883479b513cca290602ad58a4ee5d32efd18bc9090a6/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747261646572696e7465726163746976652f7574696c2d74696d652e7376673f7374796c653d666c6174)](https://packagist.org/packages/traderinteractive/util-time)[![License](https://camo.githubusercontent.com/36b86c7d6a5a0adf92d482e5fcc1b6eed52a012eb105a0628d7cce46f4a5da6f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f747261646572696e7465726163746976652f7574696c2d74696d652e7376673f7374796c653d666c6174)](https://packagist.org/packages/traderinteractive/util-time)

A collection of general util-timeities for making common programming tasks easier.

Requirements
------------

[](#requirements)

util-time-php requires PHP 7.0 (or later).

Composer
--------

[](#composer)

To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `traderinteractive/util-time` to your project's `composer.json` file such as:

```
composer require traderinteractive/util-time
```

Documentation
-------------

[](#documentation)

Found in the [source](src) itself, take a look!

Contact
-------

[](#contact)

Developers may be contacted at:

- [Pull Requests](https://github.com/traderinteractive/util-time-php/pulls)
- [Issues](https://github.com/traderinteractive/util-time-php/issues)

Project Build
-------------

[](#project-build)

With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:

```
./vendor/bin/phpcs
./vendor/bin/phpunit
```

There is also a [docker](http://www.docker.com/)-based [fig](http://www.fig.sh/) configuration that will execute the build inside a docker container. This is an easy way to build the application:

```
fig run build
```

For more information on our build process, read through out our [Contribution Guidelines](./.github/CONTRIBUTING.md).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~847 days

Total

4

Last Release

1336d ago

Major Versions

v1.8.2 → v2.0.02016-05-24

v2.0.0 → v3.0.02018-03-05

v3.0.0 → v4.0.02022-09-20

PHP version history (4 changes)v1.8.2PHP ~5.4 || ~7.0

v2.0.0PHP ~5.6 || ~7.0

v3.0.0PHP ^7.0

v4.0.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29952359?v=4)[Trader Interactive](/maintainers/traderinteractive)[@traderinteractive](https://github.com/traderinteractive)

---

Top Contributors

[![chrisryan](https://avatars.githubusercontent.com/u/704326?v=4)](https://github.com/chrisryan "chrisryan (8 commits)")[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (3 commits)")

---

Tags

utilitytime

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/traderinteractive-util-time/health.svg)

```
[![Health](https://phpackages.com/badges/traderinteractive-util-time/health.svg)](https://phpackages.com/packages/traderinteractive-util-time)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[symfony/clock

Decouples applications from the system clock

431168.9M205](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)

PHPackages © 2026

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