gcalendar/holiday

Get holiday in google calendar.

1.0 2020-09-21 08:15 UTC

This package is auto-updated.

Last update: 2024-04-21 16:38:57 UTC


README

This library for laravel to get events in google calendar

Spefication :

  • php ^7.0
  • laravel ^5
  • php-curl

Environment :

GOOGLE_CLIENT_ID=***
GOOGLE_CLIENT_SECRET=***
GOOGLE_PROJECT_ID=***
GOOGLE_REDIRECT_URI=***
GOOGLE_CALENDAR_ID=***

How to use :

in Controller/Route add this line at the same function you call :

<?php
...
use Gcalendar\Holiday;
...

Function you can call :

Holiday::get((\Illuminate\Http\Request)->all())

Notes :

  • Please make sure this (\Illuminate\Http\Request)->all() to get request data

Option for get function (Use this option before get funtion) :

Holiday::maxResult(10)

Notes :

  • This for max result of event from google calendar

Holiday::group('year')

Notes :

  • This for group in array format (list : ['year', 'month', 'day', 'y', 'm', 'd'])

Notes :