skybluesofa / onthisday
Get fun events and holidays for a given day
0.0.2.0
2018-07-13 18:56 UTC
Requires
- php: >=5.3.0
- nesbot/carbon: ~1.20
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-11-09 20:17:48 UTC
README
On This Day
Get events and holidays for today (or any other day).
// Get events for a date
$events = (new OnThisDay)->getEvents('1/1/2016');
// Get holidays for a date
$events = (new OnThisDay)->getHolidays('1/1/2016');
// Get events and Holidays for a date
$events = (new OnThisDay)->getEventsAndHolidays('1/1/2016');
What's the difference between an 'event' and a 'holiday'?
An 'event' is generally one of those fun, interesting, or informative dates that various organizations come up with. Some examples are 'National Coffee Day' or 'Talk Like a Pirate Day'.
A 'holiday', on the other hand, is one of those days for which you got off from school or send someone a card. Some examples are New Year's Day, Valentine's Day or the 4th of July.