PHPackages                             aplitax/date-time-calculation - 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. aplitax/date-time-calculation

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

aplitax/date-time-calculation
=============================

smart date time calculation missing in PHP

1.0.15(5y ago)164MITPHPPHP &gt;=5.3.0

Since Dec 2Pushed 5y ago2 watchersCompare

[ Source](https://github.com/aplitax/date-time-calculation)[ Packagist](https://packagist.org/packages/aplitax/date-time-calculation)[ RSS](/packages/aplitax-date-time-calculation/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (17)Used By (0)

DateTimeCalculation
===================

[](#datetimecalculation)

smart date time calculation missing in PHP

From provided date you can get information of:

- quarter
- first day of quarter
- last day of quarter
- first month of quarter
- last month of quarter
- days in quarter
- days passed in quarter
- first day of week
- last day of week
- first day of week by year and week number
- last day of week by year and week number
- next week by year and week number
- previous week by year and week number
- weeks in year
- interval to seconds
- interval to minutes

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Recently: every ~185 days

Total

16

Last Release

2072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3302a4a7ead6ce8d41fd016523a99561761252039a1142670613dde521675c2b?d=identicon)[aplitax](/maintainers/aplitax)

---

Top Contributors

[![aplitax](https://avatars.githubusercontent.com/u/813895?v=4)](https://github.com/aplitax "aplitax (15 commits)")

---

Tags

timedatecalculationaplitax

### Embed Badge

![Health badge](/badges/aplitax-date-time-calculation/health.svg)

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

###  Alternatives

[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6239.3M51](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.7M22](/packages/league-period)[brick/date-time

Date and time library

3623.6M94](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

20410.2M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5261.1M7](/packages/tplaner-when)[florianv/business

DateTime calculations in business hours

360781.1k1](/packages/florianv-business)

PHPackages © 2026

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