Skip to content

About

Immutable classes to work with dates and times without mixing concepts

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

DateTimes

PHP Code Coverage Type Coverage Psalm Level Packagist License

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();

Highlights

  • Separation of concepts
  • Immutability
  • Type safety
  • Cohesion

Installation

Via Composer:

composer require hereldar/date-times

Development

Run the following commands from the project folder:

make tests
make static-analysis
make coding-standards

To execute:

Documentation

Credits

License

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

About

Immutable classes to work with dates and times without mixing concepts

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages