Download the PHP package ogzhncrt/date-range-helper without Composer
On this page you can find all versions of the php package ogzhncrt/date-range-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ogzhncrt/date-range-helper
More information about ogzhncrt/date-range-helper
Files in ogzhncrt/date-range-helper
Download ogzhncrt/date-range-helper
More information about ogzhncrt/date-range-helper
Files in ogzhncrt/date-range-helper
Vendor ogzhncrt
Package date-range-helper
Short Description A small PHP utility to handle date ranges
License MIT
Package date-range-helper
Short Description A small PHP utility to handle date ranges
License MIT
Please rate this library. Is it a good library?
Informations about the package date-range-helper
๐ Date Range Helper
A lightweight PHP library for working with date ranges in an elegant and immutable way.
Includes powerful utilities for comparing, shifting, merging, and analyzing ranges.
โ Installation
๐ง Features
- Immutable
DateRange
class - Range comparison (
contains
,overlaps
) - Range math (
shift
,durationInDays
) - Utility class
DateRangeUtils
for sorting & merging ranges
๐ Usage
โจ Basic Creation
๐ Check if a Date is Within the Range
๐ Shift Range Forward or Backward
๐ Get Range Duration (in days)
๐ Check if Two Ranges Overlap
๐งฐ DateRangeUtils
๐ Sort Ranges by Start Date
๐งช Merge Overlapping or Adjacent Ranges
๐งช Testing
๐ License
MIT
All versions of date-range-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package ogzhncrt/date-range-helper contains the following files
Loading the files please wait ....