PHP utility class for getting the nearest date among an array of dates. Supports  past dates, future date or both.