Download the PHP package sadiq-bd/google-auth without Composer
On this page you can find all versions of the php package sadiq-bd/google-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package google-auth
Google Auth
A simple and efficient Google Authentication Library for PHP.
Table of Contents
- Features
- Installation
- Quick Start
- Usage
- Configuration
- API Reference
- Contributing
- License
Features
- 🔒 Easy integration with Google OAuth2
- 📦 Lightweight & dependency friendly
- 📝 Well-documented and simple API
- ⚡ Fast and secure authentication
- 🛡️ Follows best security practices
Installation
Install via Composer:
Quick Start
Usage
1. Configure Google Console
- Go to Google Cloud Console
- Create a new OAuth 2.0 Client ID
- Set your redirect URI
2. Authenticate and Get User Info
Configuration
| Option | Description |
|---|---|
client_id |
Google OAuth2 Client ID |
client_secret |
Google OAuth2 Client Secret |
redirect_uri |
Your App's Redirect URI |
API Reference
| Method | Description |
|---|---|
getAuthUrl() |
Generates the Google OAuth2 authorization URL |
fetchAccessToken() |
Exchanges code for an access token |
getUserInfo() |
Retrieves authenticated user's information |
Contributing
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
License
This project is licensed under the MIT License.
All versions of google-auth with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package sadiq-bd/google-auth contains the following files
Loading the files please wait ...