Home

Awesome

caferrari\DateRecursive

Build Status Coverage Status Total Downloads License Latest Stable Version Latest Unstable Version

Installation

Package is available on Packagist, you can install it using Composer.

composer require ferrari/date-recursive

Usage

// the next five dates with a day 15 at Tuesday 
$dates = (new DateRecursive)->match(
    DateRecursive::dayOfMonth(15),
    DateRecursive::dayOfWeek(2)
)
->limit(5)
->generate(new DateTime('2014-01-01'));