$ php -S localhost:8000 -t examples/
<?php
//example/index.php
require_once 'vendor/autoload.php';
$client = new Google_Client();
$client->setApplicationName("Client_Library_Examples");
$client->setDeveloperKey("YOUR_APP_KEY");
$accessToken = $client->fetchAccessTokenWithAuthCode('code');