2017 © Pedro Peláez
 

library laravel_google_calendar_api

This is a plugin for laravel 5 projects to simplify the google calendar api.

image

jaredclemence/laravel_google_calendar_api

This is a plugin for laravel 5 projects to simplify the google calendar api.

  • Tuesday, May 8, 2018
  • by jaredclemence@gmail.com
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

= Google Calendar Api for Laravel =, (*1)

== Installing ==, (*2)

Use composer to include this in your laravel package. From the base directory of your laravel 5 program, use the following command:, (*3)

composer require jaredclemence/laravel_google_calendar_api

== Use ==, (*4)

This package uses the namespace JRC\Google\Calendar. All classes will be in this namespace., (*5)

Prior to using this package,, (*6)

  1. Register your application with Google
  2. Create an OAuth 2.0 credential for your application
  3. Download your application credentials as a json file and put a relative path reference to your json file in your .env file (This service will tell you the appropriate name of the env variable name in an exception, so just put it anywhere for now, and then change the variable name after you receive the error.)

=== Obtain an Auth Code ===, (*7)

After including the composer autoloader, you will be able reference the CalendarAuthController. Start by instantiating an instance of this class. Call the method getAuthUrl() to generate a redirect URL for your program. You will receive errors indicating which fields need to be set in your .env file., (*8)

Send the user to that URL by passing back a redirect( $url ) value from your controller method., (*9)

For example:, (*10)

Let us assume that we have set up the following route:, (*11)

Route::get( '/google/auth', 'MyController@redirectUser' );

Then in our controller, we will have the following method:, (*12)

class MyController extends Controller{
    ...
    public function redirectUser(){
        $authController = new JRC\Google\Calendar\CalendarAuthController();
        $uri = $authController->getAuthUrl();
        return redirect( $uri );
    }
    ...
}

This will pass your user to the Google Auth view, where your user will grant your application permissions., (*13)

Google will call your program back at the URI you specify in your application's registration. (Don't worry if you picked a bad URI, you can always update this in your Google account and download a new JSON file.), (*14)

** Further edits are being made to this file **, (*15)

The Versions

08/05 2018

dev-master

9999999-dev

This is a plugin for laravel 5 projects to simplify the google calendar api.

  Sources   Download

MIT

The Requires

 

by Jared Clemence

05/04 2018

v0.0.0

0.0.0.0

This is a plugin for laravel 5 projects to simplify the google calendar api.

  Sources   Download

MIT

The Requires

 

by Jared Clemence