This library includes several classes representing the main date-time concepts, including dates, times, time-zones and periods.
LocalDate::now()->minus(weeks: 1)->atTime(LocalTime::noon())->toIso8601();- Separation of concepts
- Immutability
- Type safety
- Cohesion
Via Composer:
composer require hereldar/date-timesRun the following commands from the project folder:
make tests
make static-analysis
make coding-standardsTo execute:
- A PHPUnit test suite.
- PHPStan and Psalm for static code analysis.
- Easy Coding Standard to fix coding standards.
The MIT License (MIT). Please see LICENSE for more information.