Laravel Google Calendar package


Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A wrapper for Spatie Laravel Google Calendar, that extends its usage.


You can install the package via composer:

composer require gterrusa/laravel-google-calendar

You can publish the config file with:

php artisan vendor:publish --provider="GTerrusa\LaravelGoogleCalendar\LaravelGoogleCalendarServiceProvider"

This is the contents of the published config file:

return [

    'default_auth_profile' => env('GOOGLE_CALENDAR_AUTH_PROFILE', 'oauth'),

    'auth_profiles' => [

         * Authenticate using a service account.
        'service_account' => [
             * Path to the json file containing the credentials.
            'credentials_json' => env(

         * Authenticate with actual google user account.
        'oauth' => [
             * Path to the json file containing the oauth2 credentials.
            'credentials_json' => env(

             * Path to the json file containing the oauth2 token.
            'token_json' => env(

     *  The id of the Google Calendar that will be used by default.
    'calendar_id' => env('GOOGLE_CALENDAR_ID'),

Google Calendar Integration

  1. Login or create an account in the Google Cloud Console
  2. Enable Google Calendar Api
  3. Click:
    1. Apis & Services
    2. Credentials
    3. Create Credentials
    4. Oauth client Id
    5. Web Application
  4. Include authorized endpoints and create.
  5. Download credentials and paste contents into storage/google-calendar/oauth-credentials.json
  6. add GOOGLE_CALENDAR_ID={{ google-cloud-email-address-here }} to your .env file
  7. run php artisan laravel-google-calendar:quickstart and follow the prompts


composer test


Please see CHANGELOG for more information on what has changed recently.


Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.



The MIT License (MIT). Please see License File for more information.