ansjabar/laravel-google-calendar

Add events to Google Calendar using OAauth

0.1.1 2022-11-24 08:22 UTC

This package is auto-updated.

Last update: 2024-04-24 15:19:54 UTC


README

Laravel handler to add events to Google Calendar.

Installation

Require this package with composer.

$ composer require ansjabar/laravel-google-calendar

Integration

$ php artisan vendor:publish --provider="AnsJabar\LaravelGoogleCalendar\CalendarServiceProvider"

Add GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and 'GOOGLE_REDIRECT_BACK to your .env file. Add result of following code to Redirect URL

config('app.url').'/google-calendar/callback' // http://localhost:8000/azure-calendar/callback

Usasge

(new \AnsJabar\LaravelGoogleCalendar\Calendar(
    $from, \\ Must be instance of Carbon
    $to, \\ Must be instance of Carbon
    'Summary of the event'
))->createEvent();

License

This laravel-teams-logger package is available under the MIT license. See the LICENSE file for more info.