Skip to content

sahabatservice/google-sign-in-identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-sign-in-identity

Google Plus API deprecated On March 7, 2019

Requirements

Installation

You can use Composer or simply Download the Release

Composer

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

composer require google/apiclient:"^2.0"

Finally, be sure to include the autoloader:

require_once '/path/to/your-project/vendor/autoload.php';

Update Config.php

config file

<?php
session_start();
require_once 'vendor/autoload.php';

$redirect_uri       = "<Your REDIRECT URI>";
$client_id          = "<Your Client ID>";
$client_secret      = "<Your Client SECRET>";
$google_client      = new Google_Client();

//your client id
$google_client->setClientId($client_id);
//your client secret
$google_client->setClientSecret($client_secret);
//your Redirect URI
$google_client->setRedirectUri($redirect_uri);
//scope
$google_client->setScopes("email");
$google_client->setScopes("profile");

?>

Get Credentials Google

Google API Console Credentials page.

Releases

No releases published

Packages

No packages published

Languages