PHPackages                             thesis/time-span - 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. thesis/time-span

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

thesis/time-span
================

Thesis TimeSpan

0.2.3(7mo ago)137.6k↓10.3%2[3 issues](https://github.com/thesis-php/time-span/issues)[1 PRs](https://github.com/thesis-php/time-span/pulls)6MITPHPPHP ^8.3CI passing

Since May 6Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/thesis-php/time-span)[ Packagist](https://packagist.org/packages/thesis/time-span)[ Fund](https://www.tinkoff.ru/cf/5MqZQas2dk7)[ RSS](/packages/thesis-time-span/feed)WikiDiscussions 0.2.x Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (6)

Thesis TimeSpan
===============

[](#thesis-timespan)

[![PHP Version Requirement](https://camo.githubusercontent.com/df17c9b6e6b68ad23f3c79dbcda4116458db1936612a1a189c9631916a7449a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7468657369732f74696d652d7370616e2f706870)](https://packagist.org/packages/thesis/time-span)[![GitHub Release](https://camo.githubusercontent.com/99520acbde8d97dcce5e8c781e1c291c1b74a98096335826c9e4978f751b129a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7468657369732d7068702f74696d652d7370616e)](https://github.com/thesis-php/time-span/releases)[![Code Coverage](https://camo.githubusercontent.com/84acdd0c658f276e3de2666e084e451cf5238c3876dabb9f2158c732a105818c/68747470733a2f2f636f6465636f762e696f2f67682f7468657369732d7068702f74696d652d7370616e2f6272616e63682f302e322e782f67726170682f62616467652e737667)](https://codecov.io/gh/thesis-php/time-span/tree/0.2.x)[![Mutation testing badge](https://camo.githubusercontent.com/5831b3d53bc691f8a6ca4c62995d9a4a3aa92fbb9ab6873d6a5a783eeeb4aa5b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532467468657369732d70687025324674696d652d7370616e253246302e322e78)](https://dashboard.stryker-mutator.io/reports/github.com/thesis-php/time-span/0.2.x)

Installation
------------

[](#installation)

```
composer require thesis/time-span
```

Usage
-----

[](#usage)

```
use Thesis\Time\TimeSpan;

$delay = TimeSpan::fromSeconds(25.123);

echo $delay->toMilliseconds(); // 25123
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance48

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.6% 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 ~35 days

Recently: every ~52 days

Total

7

Last Release

165d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2552865?v=4)[Valentin Udaltsov](/maintainers/vudaltsov)[@vudaltsov](https://github.com/vudaltsov)

---

Top Contributors

[![vudaltsov](https://avatars.githubusercontent.com/u/2552865?v=4)](https://github.com/vudaltsov "vudaltsov (39 commits)")[![pageantry](https://avatars.githubusercontent.com/u/23061799?v=4)](https://github.com/pageantry "pageantry (6 commits)")[![Evgymart](https://avatars.githubusercontent.com/u/111608901?v=4)](https://github.com/Evgymart "Evgymart (3 commits)")[![kafkiansky](https://avatars.githubusercontent.com/u/37590388?v=4)](https://github.com/kafkiansky "kafkiansky (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thesis-time-span/health.svg)

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

###  Alternatives

[tobai/magento2-geo-store-switcher

Switching websites/stores depending on current country.

3512.4k](/packages/tobai-magento2-geo-store-switcher)[hedger/laravel-envicon

Use a different favicon depending on your current runtime environment

193.2k](/packages/hedger-laravel-envicon)

PHPackages © 2026

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