Introduction
Aeon is a set of libraries that makes easier to work with PHP Date & Time in elegant Object Oriented way.
Quote
The word aeon /ˈiːɒn/, also spelled eon (in American English), originally meant "life", "vital force" or "being", "generation" or "a period of time", though it tended to be translated as "age" in the sense of "ages", "forever", "timeless" or "for eternity".
Features
- Full immutability
- No dependencies
- Object oriented interface
- Mocking time in tests
- Retry fragile operations
- CLI application
- Regional holidays detection
- Business hours abstraction
- Doctrine DBAL integration
- Compatibility with all modern frameworks
- Intuitive API and IDE autocompletion
- Optional leap seconds support
- High precision of elapsed time measurement
- Smooth integration with built in \DateTimeInterface
Components
- aeon-php/calendar
- aeon-php/process - improved sleep function
- aeon-php/retry - retry strategy for failing processes
- aeon-php/cli - CLI app to check if time is synced
- aeon-php/calendar-doctrine - DBAL types
- aeon-php/calendar-holidays - Regional Holidays abstraction /li>
- aeon-php/calendar-holidays-yasumi - Yasumi bridge
- aeon-php/business-hours - Business Hours abstraction
Calendar Interface - 1.x
- TimeUnit
- Stopwatch
- Months
- DateTime
- Day
- Month
- TimePeriod
- Time
- TimeOffset
- Interval
- MonthsIterator
- DateTimeIterator
- Year
- GregorianCalendarStub
- LeapSeconds
- Years
- TimePeriodsSort
- MonthDays
- TimePeriods
- Quarter
- YearMonths
- GregorianCalendar
- DaysIterator
- Calendar
- TimeZone
- TimePeriodsIterator
- Days
- LeapSecond
- WeekDay
- DateTimeIntervalIterator
- TimeEpoch
- HRTime
- Unit
- RelativeTimeUnit
- InvalidArgumentException
- Exception
- PHPCalculator
- Calculator
- BCMathCalculator
- PreciseCalculator
- InvalidTypeException
- Exception