PHPackages                             programster/google-sso - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. programster/google-sso

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

programster/google-sso
======================

Apackage for integrating with Google SSO

0.0.2(1y ago)0120↓93.3%MITPHPPHP &gt;=8.2.0

Since Jun 7Pushed 1y agoCompare

[ Source](https://github.com/programster/package-google-sso)[ Packagist](https://packagist.org/packages/programster/google-sso)[ Docs](https://github.com/programster/package-google-sso)[ RSS](/packages/programster-google-sso/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Google SSO Package
==================

[](#google-sso-package)

A package to make it easy to use Google SSO (OAuth 2 / OIDC), without minimal bloat and lots of flexibility.

This package makes use of the PSR-17 and PSR-18 interfaces, so this package should be able to work with any existing mechanism you use to send messages. If you are not sure what this means, then we would recommend that you just install the `guzzlehttp/guzzle` package, and follow the example in the README. If you cannot use Guzzle for whatever reason, then `slim/psr7` is a good alternative.

Please be aware that this package requires the use of the `$_SESSION` superglobal

Usage
-----

[](#usage)

### Installation

[](#installation)

Install this in your codebase with composer like so:

```
composer require programster/google-sso
```

### Example Code

[](#example-code)

There is an [example codebase on GitHub](https://github.com/programster/Google-SSO-Demo/tree/using-programster-google-sso-package)that demonstrates using this package. Also, the following code snippet creates a Google SSO client and sends the user to Google to login.

```
