Skip to content

Instantly share code, notes, and snippets.

@perials
perials / login.php
Last active January 19, 2020 02:46
Google login using PHP and Google Client Library version 2
<?php
/*
* Please install Google client library using composer. Use below command
* composer require google/apiclient:"^2.0"
*/
// Turn ON error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);