XPL DateTime
XPL DateTime component attempts to improve the Date and Time Extension
shipped with PHP. It adds some enhancements while is almost fully compatible
with the default extension. It is also more ISO 8601 compilant., (*1)
License |
Version |
Status |
SensioLabsInsight |
[ ]0
|
 |
|
 |
Documentation
The component may be 100% compatible with standard Date and Time Extension
classes but the names used are based on ISO 8601., (*2)
To replace the original PHP implementation with this component, include the
following PHP snippet:, (*3)
use Xpl\DateTime\DateTime as DateTime;
use Xpl\DateTime\DateTimeImmutable as DateTimeImmutable;
use Xpl\DateTime\DateTimeInterface as DateTimeInterface;
use Xpl\DateTime\Duration as DateInterval;
use Xpl\DateTime\TimeZone as DateTimeZone;
Just use like the standard PHP extension classes., (*4)
Installation
Just use composer to add the dependency:, (*5)
composer require xpl/datetime:dev-master
Or add the dependecy manually:, (*6)
-
Update composer.json
file with the lines:, (*7)
{
"require": {
"xpl/datetime": "dev-master"
}
}
-
And update the dependencies:, (*8)
composer update xpl/datetime
Authorship
Current maintainer:, (*9)
This component starts as an utility class used on an internal project. This is
a fork of the idea rewrited from scratch., (*10)
Copyright and License
XPL DateTime is licensed under the MIT License – see the [LICENSE
]0 file
for details., (*11)
If you did not receive a copy of the license, contact with the author., (*12)