Shine United - Google Client
Installation
Install Composer
$ curl -sS https://getcomposer.org/installer | php
Require Google Client Library
$ composer require shineunited/googleclient
Usage
Silex
To use the Google Client with Silex, register the service provider:, (*1)
use ShineUnited\GoogleClient\Silex\GoogleClientServiceProvider;
$app->register(new GoogleClientServiceProvider(), [
'gapi.options' => [
...
]
]);
Options
application_name (string), (*2)
client_id (string), (*3)
client_secret (string), (*4)
redirect_url (string), (*5)
access_type (string), (*6)
approval_prompt (string), (*7)
developer_key (string), (*8)
scope (string), (*9)
scopes (array), (*10)