PHPackages                             hvanoch/dateintervalparser - 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. hvanoch/dateintervalparser

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

hvanoch/dateintervalparser
==========================

Parses string input to DateInterval: 5w 3d 4h 12s, with support of aliases

026PHP

Since Jul 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/hvanoch/daterangeparser)[ Packagist](https://packagist.org/packages/hvanoch/dateintervalparser)[ RSS](/packages/hvanoch-dateintervalparser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Date range parser
=================

[](#date-range-parser)

Parses a string input

```
$parser = new DateIntervalParser();
$dateInterval = $parser->parse('3w 2d 5h');
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6741991?v=4)[Henne Van Och](/maintainers/hvanoch)[@hvanoch](https://github.com/hvanoch)

---

Top Contributors

[![hvanoch](https://avatars.githubusercontent.com/u/6741991?v=4)](https://github.com/hvanoch "hvanoch (7 commits)")

### Embed Badge

![Health badge](/badges/hvanoch-dateintervalparser/health.svg)

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

###  Alternatives

[serkanalgur/cmb2-field-faiconselect

Font Awesome icon selector for powerful custom metabox generator CMB2

202.3k](/packages/serkanalgur-cmb2-field-faiconselect)

PHPackages © 2026

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