Download the PHP package waglpz/google-sso without Composer
On this page you can find all versions of the php package waglpz/google-sso. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download waglpz/google-sso
More information about waglpz/google-sso
Files in waglpz/google-sso
Download waglpz/google-sso
More information about waglpz/google-sso
Files in waglpz/google-sso
Vendor waglpz
Package google-sso
Short Description Single sign on with Google. Minimal implementation.
License MIT
Package google-sso
Short Description Single sign on with Google. Minimal implementation.
License MIT
Please rate this library. Is it a good library?
Informations about the package google-sso
Google SSO Client Library for PHP
The Google SSO Client Library enables you to work with single sign on via Google API.
Requirements
PHP 8.2 or higher
Installation
composer require waglpz/google-sso:"^1.0"
Authentication with OAuth
- Follow the instructions to Create Web Application Credentials
- Download the JSON credentials in some hidden directory and include this one path in config.
- Set the path to these credentials using config
authConfig
. - Set the scopes required for the API you are going to call using config key
scopes
- Set your application's redirect URI in config
- Set expected prompt when redirect to google. These can
none
,consent
orselect_account
. - In the script handling the redirect URI, exchange the authorization code for an access token:
Example
Code Quality and Testing
To check for coding style violations, run
To automatically fix (fixable) coding style violations, run
To check for static type violations, run
To check for regressions, run
To check all violations at once, run
All versions of google-sso with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
ext-json Version *
google/apiclient Version ^2.13
waglpz/webapp Version ^v2.0
waglpz/webapp-security Version ^v2.0
ext-json Version *
google/apiclient Version ^2.13
waglpz/webapp Version ^v2.0
waglpz/webapp-security Version ^v2.0
The package waglpz/google-sso contains the following files
Loading the files please wait ....