$ curl -sS https://getcomposer.org/installer | php
$ composer require shineunited/googleclient
To use the Google Client with Silex, register the service provider:
use ShineUnited\GoogleClient\Silex\GoogleClientServiceProvider;
$app->register(new GoogleClientServiceProvider(), [
'gapi.options' => [
...
]
]);
application_name (string)
client_id (string)
client_secret (string)
redirect_url (string)
access_type (string)
approval_prompt (string)
developer_key (string)
scope (string)
scopes (array)