bramus/datetime

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

Maintainers

👁 bramus

Package info

github.com/bramus/php-datetime

pkg:composer/bramus/datetime

Fund package maintenance!

bramus

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0 2022-03-04 15:21 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b4f4b3dbf76badda913297edce548c0bf16a99b1

  • Bramus <bramus.woop@bram.us>

This package is auto-updated.

Last update: 2026-06-05 00:27:28 UTC


README

👁 Build Status
👁 Source
👁 Version
👁 Downloads
👁 License

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

Built by Bram(us) Van Damme (https://www.bram.us) and Contributors

Prerequisites/Requirements

  • PHP 7.2 or greater

Installation

Installation is possible using Composer

$ composer require bramus/datetime ~1.0

Usage

@TODO

Testing

bramus/datetime ships with unit tests using 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

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