Download the PHP package niisan/laravel-oauth-google-calendar without Composer
On this page you can find all versions of the php package niisan/laravel-oauth-google-calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niisan/laravel-oauth-google-calendar
More information about niisan/laravel-oauth-google-calendar
Files in niisan/laravel-oauth-google-calendar
Package laravel-oauth-google-calendar
Short Description Using Google Calendar Api by using OAuth in Laravel.
License MIT
Informations about the package laravel-oauth-google-calendar
oauth-google-calendar
This is a package of a series of processes to create an application linked to Google Calendar using OAuth authentication in Laravel.
Required
Laravel >= 5.8 PHP >= 7.4
Install
Install via composer.
Then, bring the config to your config dir.
and choose 'Niisan\Laravel\GoogleCalendar\OauthCalendarServiceProvider'.
You can use this package via DI container.
or
Config
This package's config file is the google-calendar.php
.
client_id
and client_secret
are from Google OAuth user.
holiday_id
is your county's calendar id offering holidays.
events.token_refreshed
can define a event when token refreshed in this package.
For example,
And, Events/TokenRefreshedEvent.php
Usage
This package has following methods.
These methods take $user
as an argument. $user
is a object and must huve accessible propeties, access_token
, refresh_token
, expires
.
getEventList()
This method get user's event. $config
is a search condition.
All parameters are optional.
createEvent
This method create user's event. $data
is a event content.
getFreeBusy
This method give you user's busy time. The response type is following:
Note that https://www.googleapis.com/auth/calendar.readonly
is the scope that the getFreeBusy
method needs to be in.
updateEvent
this method update user's event. $data
is same as createEvent's and put null for values that do not need to be updated.
getHolidays
This method offers you your country's holidays.
All versions of laravel-oauth-google-calendar with dependencies
nesbot/carbon Version ^2.0
illuminate/support Version ^5.8|^6.0|^7.0|^8.0