spatie/period
Immutable date period objects for PHP with powerful comparison tools. Create periods from any DateTime (including Carbon), then calculate overlaps, gaps, intersections, differences, containment, and other complex comparisons across two or many periods.
Full Changelog: https://github.com/spatie/period/compare/2.3.5...2.4.0
Revert previous release
Full Changelog: https://github.com/spatie/period/compare/2.3.2...2.3.3
PeriodCollection::sort() (#97)PeriodCollection::unique() (#96)PeriodCollection::subtract(PeriodCollection|Period $others) (#84)PeriodCollection::overlap(PeriodCollection $others)PeriodCollection::overlapAll(PeriodCollection ...$others)^8.0overlapAll when no overlapPeriod or PeriodCollectionPeriod to staticPeriod::duration() returns an instance of PeriodDurationPeriod::length() now uses the Period's precision instead of always returning daysPeriod::overlap() renamed to Period::overlapAny()Period::overlapSingle() renamed to Period::overlap()Period::diff() renamed to Period::subtract()Period::subtract() (previously diff) no longer returns the gap when there's no overlapPeriod::diffSingle() renamed to Period::diffSymmetric()Period::contains() now accepts both DateTimeInterface and PeriodPeriodCollection::overlap() now accepts one or several periodsgetIncludedEnd() and getStart() to includedEnd() and start(), etc.Period::fromString()Period::asString()Period::renew (#74)filter to PeriodCollectionPeriod::contains() (#46)map and reduce to PeriodCollectionPeriod::containsFull Changelog: https://github.com/spatie/period/compare/2.3.0...2.3.1
Full Changelog: https://github.com/spatie/period/compare/2.3.3...2.3.4
How can I help you explore Laravel packages today?