PHPackages                             bramus/datetime - 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. bramus/datetime

ActiveLibrary

bramus/datetime
===============

Extensions to PHP's built-in `DateTime` and `DateTimeZone` classes

1.0(4y ago)15MITPHPPHP &gt;=7.2

Since Mar 4Pushed 4y ago2 watchersCompare

[ Source](https://github.com/bramus/php-datetime)[ Packagist](https://packagist.org/packages/bramus/datetime)[ GitHub Sponsors](https://github.com/bramus)[ RSS](/packages/bramus-datetime/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

`bramus/datetime`
=================

[](#bramusdatetime)

[![Build Status](https://github.com/bramus/php-datetime/workflows/CI/badge.svg)](https://github.com/bramus/php-datetime/actions) [![Source](https://camo.githubusercontent.com/5e43fe9b17bff7d6405b5576c0a99d0a5492702d523e3564488bbe68845195c7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6272616d75732f6461746574696d652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-datetime) [![Version](https://camo.githubusercontent.com/0c3bab556ada2cf8c067ab777a108b857b64a1a685f0dc992008e74592adfed5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272616d75732f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/datetime) [![Downloads](https://camo.githubusercontent.com/5d77be7a869f372f87924cb4df7bd91012c6b44ff39ea40d6a5d173a54e33462/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272616d75732f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/datetime/stats) [![License](https://camo.githubusercontent.com/d3778f6923ef21a60432a665a9be5ffacc50071dbc9f7f0669b4a0b6307e0b51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272616d75732f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-datetime/blob/master/LICENSE)

`bramus/datetime` provides a few extensions to PHP's built-in `DateTime` and `DateTimeZone` classes.

Built by Bram(us) Van Damme *()* and [Contributors](https://github.com/bramus/php-datetime/graphs/contributors)

Prerequisites/Requirements
--------------------------

[](#prerequisitesrequirements)

- PHP 7.2 or greater

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

[](#installation)

Installation is possible using Composer

```
$ composer require bramus/datetime ~1.0

```

Usage
-----

[](#usage)

@TODO

Testing
-------

[](#testing)

`bramus/datetime` ships with unit tests using [PHPUnit](https://github.com/sebastianbergmann/phpunit/) `~8.0`.

- If PHPUnit is installed globally run `phpunit` to run the tests.
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `./vendor/bin/phpunit` or using the composer script `composer test`

```
$ composer test

```

License
-------

[](#license)

`bramus/datetime` is released under the MIT public license. See the enclosed `LICENSE` for details.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1536d ago

### Community

Maintainers

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

---

Top Contributors

[![bramus](https://avatars.githubusercontent.com/u/213073?v=4)](https://github.com/bramus "bramus (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bramus-datetime/health.svg)

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

PHPackages © 2026

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