https://github.com/skybluesofa/onthisday
Get fun events and holidays for a given day.
https://github.com/skybluesofa/onthisday
Last synced: 24 days ago
JSON representation
Get fun events and holidays for a given day.
- Host: GitHub
- URL: https://github.com/skybluesofa/onthisday
- Owner: skybluesofa
- License: mit
- Created: 2016-09-30T20:05:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T20:14:34.000Z (almost 7 years ago)
- Last Synced: 2025-04-20T19:37:55.305Z (about 2 months ago)
- Language: PHP
- Size: 84 KB
- Stars: 3
- Watchers: 1
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/skybluesofa/onthisday) [](https://codeclimate.com/github/skybluesofa/onthisday) [](https://codeclimate.com/github/skybluesofa/onthisday/coverage) [](https://packagist.org/packages/skybluesofa/onthisday) [](https://packagist.org/packages/skybluesofa/onthisday) [](LICENSE)
# 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.