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
- Host: GitHub
- URL: https://github.com/ngekoding/google-login
- Owner: ngekoding
- Created: 2022-08-28T13:52:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T11:54:08.000Z (over 1 year ago)
- Last Synced: 2025-02-01T00:51:08.682Z (about 1 year ago)
- Topics: google-login, social-login, social-login-google
- Language: PHP
- Homepage: https://packagist.org/packages/ngekoding/google-login
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
}
```