An open API service indexing awesome lists of open source software.

https://github.com/ngekoding/google-login

Simplifying the Google Login process in a PHP application
https://github.com/ngekoding/google-login

google-login social-login social-login-google

Last synced: 4 months ago
JSON representation

Simplifying the Google Login process in a PHP application

Awesome Lists containing this project

README

          

# Google Login

The easy way to integrate Google Login into PHP application.

## Requirements

- PHP 5.6 or above
- The **OAuth client ID** from Google Cloud Console

## Installation

```sh
composer require ngekoding/google-login
```

## Usage

Just call the `auth` method and you are done!

```php
auth();

header('Content-Type: application/json');
echo json_encode($googleLogin->user());
} catch (\Exception $e) {
echo 'Error: '.$e->getMessage();
}
```