Skip to content
/ PhpDate Public

Augmenting the build-in PHP date functionality.

License

Notifications You must be signed in to change notification settings

Stadly/PhpDate

Repository files navigation

PhpDate

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Augmenting the built-in PHP date functionality.

Install

Via Composer

$ composer require stadly/php-date

Usage

use Stadly\Date\Interval;

Interval::compare(new \DateInterval('P1M'), new \DateInterval('P27D')); // 1
Interval::compare(new \DateInterval('P1M'), new \DateInterval('P30D')); // null
Interval::compare(new \DateInterval('P1M'), new \DateInterval('P32D')); // -1

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email magnar@myrtveit.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.