php-value-object / date-time-range
DateTimeRange value object
Installs: 3 043
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- phpstan/phpstan-shim: ^0.9
- phpunit/phpunit: ^6.5
This package is not auto-updated.
Last update: 2024-11-21 01:27:38 UTC
README
This repository provides DateTiemRange ValueObject implementation for PHP that is easy to use and easily allow your classes to
depend on DateTimeRange
object instead of having both $startDateTime
and $endDateTime
.
Install
You can install this package via composer
composer require php-value-object/date-time-range
Example
$dateTimeRange = new DateTimeRange( new \DateTimeImmutable('2015-01-01'), new \DateTimeImmutable('2015-03-25') );
Licence
MIT
Contributing
Any contributions are welcome
Building & Development
The easiest way how to develop is to git clone
and run make
git clone git@github.com:PHPValueObject/DateTimeRange.git date_time_range
cd date_time_range
make