PHPackages                             kimjangwook/date-util - 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. kimjangwook/date-util

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

kimjangwook/date-util
=====================

Commonly use for control date when I write some code

1.1.0(6y ago)122MITPHPPHP ^5.3.3 || ^7.0CI failing

Since Feb 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kimjangwook/date-util)[ Packagist](https://packagist.org/packages/kimjangwook/date-util)[ Docs](https://github.com/kimjangwook/date-util.git)[ RSS](/packages/kimjangwook-date-util/feed)WikiDiscussions master Synced today

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

KimJangwook\\DateUtil\\DateCalculator
-------------------------------------

[](#kimjangwookdateutildatecalculator)

```
use KimJangwook\DateUtil\DateCalculator;

// public static function addMonth(string $dateString, int $monthAdding)
echo DateCalculator::addMonth('2020-02-29', 1); // 2020-03-31
echo DateCalculator::addMonth('2020-02-29', 2); // 2020-04-30
echo DateCalculator::addMonth('2020-02-29', 3); // 2020-05-31
echo DateCalculator::addMonth('2020-01-30', 1); // 2020-02-29
```

KimJangwook\\DateUtil\\DateFormatter
------------------------------------

[](#kimjangwookdateutildateformatter)

```
use KimJangwook\DateUtil\DateFormatter;

// public static function strtotime(string $dateString)
echo DateFormatter::strtotime('2020年03月01日 11時30分30秒'); // === strtotime('2020-03-01 11:30:30')
echo DateFormatter::strtotime('2020年03月01日 11時30分'); // === strtotime('2020-03-01 11:30')
echo DateFormatter::strtotime('2020年03月01日 11時'); // === strtotime('2020-03-01 11:00:00')
echo DateFormatter::strtotime('2020年03月01日'); // === strtotime('2020-03-01')

// public static function dayOfWeek(string $dateString, int $type)
echo DateFormatter::dayOfWeek('2020-01-01', DateFormatter::TYPE_KR); // 수요일
echo DateFormatter::dayOfWeek('2020-01-01', DateFormatter::TYPE_JP); // 水曜日
echo DateFormatter::dayOfWeek('2020-01-01', DateFormatter::TYPE_CN); // 星期三
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.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 ~0 days

Total

2

Last Release

2285d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/705834b0fb6a78a71f71f9026c7be3ceecc30ff44d260123683f86943d4427a1?d=identicon)[kimjangwook](/maintainers/kimjangwook)

---

Top Contributors

[![kjw1029-cognito](https://avatars.githubusercontent.com/u/52641608?v=4)](https://github.com/kjw1029-cognito "kjw1029-cognito (11 commits)")[![kimjangwook](https://avatars.githubusercontent.com/u/14495700?v=4)](https://github.com/kimjangwook "kimjangwook (1 commits)")

---

Tags

date

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kimjangwook-date-util/health.svg)

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

###  Alternatives

[rlanvin/php-rrule

Lightweight and fast recurrence rules for PHP (RFC 5545)

69810.6M39](/packages/rlanvin-php-rrule)[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)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9201.2M45](/packages/morilog-jalali)[brick/date-time

Date and time library

3623.3M60](/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)
