2017 © Pedro Peláez
 

symfony-bundle google-calendar-bundle

Provides a google calendar integration for your Symfony 3 Project.

image

fungio/google-calendar-bundle

Provides a google calendar integration for your Symfony 3 Project.

  • Monday, May 28, 2018
  • by fungio
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4,024 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Google Calendar Bundle

This bundle use Google API for list, create, or update events in Google Calendar., (*1)

Please feel free to contribute, to fork, to send merge request and to create ticket., (*2)

Requirement

Create a API account

Go to the developers console : https://console.developers.google.com, (*3)

Create an oauth ID. Do not forget the redirect Uri., (*4)

Click on "Download JSON" to get your client_secret.json, (*5)

Installation

Step 1: Install GoogleCalendarBundle

Run, (*6)

composer require fungio/google-calendar-bundle:dev-master

Step 2: Enable the bundle

``` php <?php // app/AppKernel.php, (*7)

public function registerBundles() { $bundles = [ // ... new Fungio\GoogleCalendarBundle\FungioGoogleCalendarBundle() ]; }, (*8)


### Step 3: Configuration Copy your client_secret.json file for example in app/Resources/GoogleCalendarBundle/client_secret.json ```yml # app/config/parameters.yml fungio_google_calendar: google_calendar: application_name: "Google Calendar" credentials_path: "%kernel.root_dir%/.credentials/calendar.json" client_secret_path: "%kernel.root_dir%/Resources/GoogleCalendarBundle/client_secret.json"

Example

``` php <?php // in a controller $request = $this->get('request_stack')->getMasterRequest();, (*9)

$googleCalendar = $this->get('fungio.google_calendar'); $googleCalendar->setRedirectUri($redirectUri);, (*10)

if ($request->query->has('code') && $request->get('code')) { $client = $googleCalendar->getClient($request->get('code')); } else { $client = $googleCalendar->getClient(); }, (*11)

if (is_string($client)) { return new RedirectResponse($client); }, (*12)

$events = $googleCalendar->getEventsForDate('primary', new \DateTime('now'); ```, (*13)

The Versions

28/05 2018

dev-master

9999999-dev

Provides a google calendar integration for your Symfony 3 Project.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierrick AUBIN

google calendar