PHPackages                             emeraldinspirations/lib-valueobject-dateinterval - 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. emeraldinspirations/lib-valueobject-dateinterval

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

emeraldinspirations/lib-valueobject-dateinterval
================================================

A value object for periods of time (e.x. 1 year). Adds toString() and equals() functions to \\DateInterval object.

v1.1.0(8y ago)018MITPHP

Since Jul 28Pushed 8y agoCompare

[ Source](https://github.com/emeraldinspirations/lib-valueobject-dateinterval)[ Packagist](https://packagist.org/packages/emeraldinspirations/lib-valueobject-dateinterval)[ RSS](/packages/emeraldinspirations-lib-valueobject-dateinterval/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (4)Used By (0)

[![Logo of the project](https://camo.githubusercontent.com/c67fa1beb89c73a2ce2b2b21d7138d7fdb8c6e7352dbfa052f052835f6bcf013/687474703a2f2f76707335363133322e7670732e6f76682e63612f6c6f676f2e6769744875622e706e67)](https://camo.githubusercontent.com/c67fa1beb89c73a2ce2b2b21d7138d7fdb8c6e7352dbfa052f052835f6bcf013/687474703a2f2f76707335363133322e7670732e6f76682e63612f6c6f676f2e6769744875622e706e67)

lib-valueObject-dateInterval
============================

[](#lib-valueobject-dateinterval)

> A component of [emeraldinspiration](https://github.com/emeraldinspirations)'s library.

A value object for periods of time (e.x. 1 year). Adds `toString()` and `equals()` functions to `\DateInterval` object.

Installing / Getting started
----------------------------

[](#installing--getting-started)

This project has no dependencies, so can be cloned directly from the git repo or required with Composer.

### Require with Composer

[](#require-with-composer)

```
composer require emeraldinspirations/lib-valueobject-dateinterval
```

Contributing
------------

[](#contributing)

If you'd like to contribute, please fork the repository and use a feature branch.

I am also open to feedback about how well I am being compliant with standards and "best practices." I have written software solo for years, and am trying to learn how to work better with others.

Licensing
---------

[](#licensing)

The code in this project is licensed under [MIT license](LICENSE.md).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b00e274ef30171d57009166c7717299c5db5e6cdf73732c2cd8e4463ccbe0843?d=identicon)[emeraldinspirations](/maintainers/emeraldinspirations)

---

Top Contributors

[![emeraldinspirations](https://avatars.githubusercontent.com/u/20853049?v=4)](https://github.com/emeraldinspirations "emeraldinspirations (11 commits)")

### Embed Badge

![Health badge](/badges/emeraldinspirations-lib-valueobject-dateinterval/health.svg)

```
[![Health](https://phpackages.com/badges/emeraldinspirations-lib-valueobject-dateinterval/health.svg)](https://phpackages.com/packages/emeraldinspirations-lib-valueobject-dateinterval)
```

PHPackages © 2026

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