PHPackages                             topaz/holidays - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. topaz/holidays

ActiveLibrary

topaz/holidays
==============

Fetches Google calendar public holidays

v1.01(4y ago)62.9kMITPHP

Since Aug 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/olotintemitope/publicholiday)[ Packagist](https://packagist.org/packages/topaz/holidays)[ RSS](/packages/topaz-holidays/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Public Holiday
==============

[](#public-holiday)

This package uses the Google Calendar API to fetch public holidays. The data always comes with 3 years data; the previous year, the current year and next year.

How to use
==========

[](#how-to-use)

- `composer require topaz/holidays`
- Register for an API key on Google console
- Add your key \[GOOGLE\_CALENDAR\_API\_KEY\] to your `.env` file
- Import `LazHoliday\PublicHoliday`

Sample Usage
------------

[](#sample-usage)

```
