PHPackages                             mezon/date-time-utils - 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. mezon/date-time-utils

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

mezon/date-time-utils
=====================

Small date/time utilities

1.0.5(5y ago)33.1kMITPHPPHP &gt;=7.2.0CI failing

Since Jun 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/alexdodonov/mezon-date-time-utils)[ Packagist](https://packagist.org/packages/mezon/date-time-utils)[ Docs](https://github.com/alexdodonov/mezon-date-time-utils)[ RSS](/packages/mezon-date-time-utils/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Utilities for data manipulation
===============================

[](#utilities-for-data-manipulation)

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

[](#installation)

Just print

```
composer require mezon/date-time-utils

```

Locale setup
------------

[](#locale-setup)

You can specify necessary locale by setting up the DateTimeUtils::$locale variable. For example:

```
DateTimeUtils::$locale = 'en';
```

Methods
-------

[](#methods)

Method returns true if the passed date is today

```
DateTimeUtils::isToday(string $date):bool
```

Method returns true if the passed date was yesterday

```
DateTimeUtils::isYesterday(string $date):bool
```

Method returns day and literal representation of month from the date. For example the string "1 of july" will be returned for the date '2020-07-01'

```
DateTimeUtils::dayMonth(string $date): string
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~64 days

Recently: every ~80 days

Total

6

Last Release

1842d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14943896?v=4)[alexdodonov](/maintainers/alexdodonov)[@alexdodonov](https://github.com/alexdodonov)

---

Top Contributors

[![alexdodonov](https://avatars.githubusercontent.com/u/14943896?v=4)](https://github.com/alexdodonov "alexdodonov (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mezon-date-time-utils/health.svg)

```
[![Health](https://phpackages.com/badges/mezon-date-time-utils/health.svg)](https://phpackages.com/packages/mezon-date-time-utils)
```

###  Alternatives

[laravel-frontend-presets/zurb-foundation

Laravel 6.0+ front-end preset for Zurb Foundation

5218.7k](/packages/laravel-frontend-presets-zurb-foundation)

PHPackages © 2026

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