Диапазон дат
$from = new \DateTime('2014-01-01');
$to = new \DateTime('2015-11-01');
$period = new \DatePeriod($from, new \DateInterval('P1D'), $to);
$arrayOfDates = array_map(
function ($item) {
return $item->format('Y-m-d');
},
iterator_to_array($period)
);