PHP Date Recursion library