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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires google/apiclient Version ^2.9
nesbot/carbon Version ^2.0
illuminate/support Version ^5.8|^6.0|^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package niisan/laravel-oauth-google-calendar contains the following files

Loading the files please wait ....