stadly / php-date
Augmenting the built-in PHP date functionality.
Installs: 5 337
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^1.0
- pepakriz/phpstan-exception-rules: ^0.3.0
- phpstan/phpstan: ^0.10.0
- phpstan/phpstan-deprecation-rules: ^0.10.0
- phpstan/phpstan-phpunit: ^0.10.0
- phpstan/phpstan-strict-rules: ^0.10.0
- phpunit/phpunit: ^7.1
- squizlabs/php_codesniffer: ^3.3.1
This package is auto-updated.
Last update: 2024-12-18 00:56:04 UTC
README
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.