A series of constants designed to make it easier to express dates in PHP applications
The Date Constants package defines a number of useful PHP constants within your application, making it easier to express measures of dates.
These constants may seem familiar to Laravel developers, as they're absolutely inspired by Nesbot\Carbons use of date constants. Also, shoutout to the
stevegrunwell/time-constants package for the idea.
Date Constants is intended to be installed via Composer:
$ composer require repat/date-constants
The package has been configured to automatically expose the
constants.php file via the Composer-generated autoloader, so you'll be ready to use the constants as soon as the package has been installed!
This is a list of all constants defined by this package, along with their values. Each constant is wrapped in a
if (! defined(...)) conditional, ensuring these constants can easily be redefined if necessary and won't conflict with existing constants.
- Finish Tests
- Version 2.0.1