peekandpoke / php-types
Basic types for PHP like Enums, LocalDate etc...
Installs: 2 689
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^4.8.36
README
Why PHP-Types
There are some types that PHP does not provide as part of the language, e.g.:
-
Enums
-
LocalDate (a date object that enforces creation WITH timezone)
TODO
( ) LocalDate::isSameDay
( ) LocalDate::isSameWeek
( ) LocalDate::isSameMonth
( ) LocalDate::isSameYear
( ) LocalDate::isSameDecade
( ) LocalDate::isSameCentury
( ) LocalDate::isSameMillennium
( ) extract all DST (daylight saving time aware methods from LocalDate)
$date->dst()->getShift() $date->dst()->modifyByDays() ...