shineunited/googleclient

Tools for Google API Client

v1.0.0 2015-05-20 17:09 UTC

This package is auto-updated.

Last update: 2024-12-15 01:58:25 UTC


README

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:

use ShineUnited\GoogleClient\Silex\GoogleClientServiceProvider;

$app->register(new GoogleClientServiceProvider(), [
	'gapi.options' => [
		...
	]
]);
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)