2017 © Pedro Peláez
 

symfony-bundle outlook-calendar-bundle

Provides a outlook calendar integration for your Symfony 3 Project.

image

fungio/outlook-calendar-bundle

Provides a outlook calendar integration for your Symfony 3 Project.

  • Thursday, September 7, 2017
  • by fungio
  • Repository
  • 2 Watchers
  • 1 Stars
  • 376 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Outlook Calendar Bundle

This bundle use Outlook API for list events in Outlook Calendar., (*1)

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

Requirement

Create an API account

Go to the application registration portal : https://apps.dev.microsoft.com, (*3)

Click on "Add an app" and put a name to your app., (*4)

Click on "Generate New Password" and copy the password, (*5)

Installation

Step 1: Install OutlookCalendarBundle

Run, (*6)

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

Step 2: Enable the bundle

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

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


### Step 3: Configuration ```yml # app/config/parameters.yml fungio_outlook_calendar: outlook_calendar: client_id: "YOUR_APPLICATION_ID" client_secret: "THE_PASSWORD_YOU_SAVED"

Example

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

$outlookCalendar = $this->get('fungio.outlook_calendar'); if ($session->has('fungio_outlook_calendar_access_token')) { // do nothing } else if ($request->query->has('code') && $request->get('code')) { $token = $outlookCalendar->getTokenFromAuthCode($request->get('code'), $redirectUri); $access_token = $token['access_token']; $session->set('fungio_outlook_calendar_access_token', $access_token); } else { return new RedirectResponse($outlookCalendar->getLoginUrl($redirectUri)); }, (*10)

$events = $outlookCalendar->getEventsForDate($session->get('fungio_outlook_calendar_access_token'), new \DateTime('now'); ```, (*11)

The Versions

07/09 2017

dev-master

9999999-dev

Provides a outlook calendar integration for your Symfony 3 Project.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierrick AUBIN

outlook calendar