Download the PHP package happyr/google-api-bundle without Composer
On this page you can find all versions of the php package happyr/google-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download happyr/google-api-bundle
More information about happyr/google-api-bundle
Files in happyr/google-api-bundle
Package google-api-bundle
Short Description A Symfony2 Wrapper for the Google APIs Client Library for PHP
License MIT
Homepage http://developer.happyr.com/symfony2-bundles/google-api-bundle
Informations about the package google-api-bundle
Google API Bundle
A symfony2 bundle to communicate to Google API. This bundle is a Symfony2 wrapper for the google apiclient. There are some services not yet implemented. Please submit a PR and I'm happy to merge.
Installation
Step 1: Using Composer
Install it with Composer!
Then, you can install the new dependencies by running Composer's update
command from the directory where your composer.json
file is located:
Step 2: Register the bundle
To register the bundles with your kernel:
Step 3: Configure the bundle
Basic Usage
Step 1: Create a controller
Create a controller with authenticate
and redirect
methods.
Step 2: Get the access code
Setup the required scope of your app and redirect the user to complete their part of the OAuth request.
Step 3: Handle the redirect
Determine if an access code has been returned. If there is an access code then exchange this for an access token by using the client authenticate
method.
If successful the response should include access_token
, expires_in
, token_type
, and created
.
All versions of google-api-bundle with dependencies
symfony/framework-bundle Version 2.*|~3.0|^4.0
symfony/yaml Version 2.*|~3.0|^4.0
google/apiclient Version 1.*|2.*