PHPackages                             jalsoedesign/persistent-oauth-google-client - 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. jalsoedesign/persistent-oauth-google-client

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

jalsoedesign/persistent-oauth-google-client
===========================================

A persistent oauth google client to solve the OAuth persistency (access/refresh tokens) when using server2server communication

04PHP

Since May 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/h2ooooooo/persistent-oauth-google-client)[ Packagist](https://packagist.org/packages/jalsoedesign/persistent-oauth-google-client)[ RSS](/packages/jalsoedesign-persistent-oauth-google-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Persistent OAuth Google Client
==============================

[](#persistent-oauth-google-client)

A persistent OAuth Google Client integration to solve all the OAuth stuff when using server2server communication.

Setup
-----

[](#setup)

1. Sign into the [Google API console developer panel](https://console.developers.google.com)
2. Create a new project called `SimpleGoogleClient`, or whatever you want
3. Click "Library" in the menu and find the libraries you want the client to support
4. Go to "Credentials" in the menu and access the "OAuth consent screen" tab
5. Set up the system as follows:
    1. **Application type**: Public
    2. **Application name**: SimpleGoogleClient
    3. **Support email**: *(your email)*
    4. Add the scope for whatever API you need (this depends on the services you want)
    5. **Authorized domains**: *(your domain)*
    6. **Application Homepage link**: *(a link to your website frontpage)*
    7. **Application Privacy Policy link**: *(a link to your website privacy policy)*
    8. **Application Terms link**: *(a link to your website terms)*
6. Save the credentials and go back to the "Credentials" tab and click "Create credentials"
7. Select "Oauth client ID - Requests user consent so your app.." from the create menu
8. Select "Other" in the Application type dropdown and name it whatever you want
9. Click "OK" in the popup that comes up and click the little download icon next to your OAuth credential row
10. Finally take the downloaded JSON file and put it anywhere on your server, and make sure you reference it using `$config->setAuthConfig($pathToAuthConfigJson)`

Examples
--------

[](#examples)

***NOTE**: These examples need you to create an oauth credentials file first!*

### Basic CLI

[](#basic-cli)

Examples using basic CLI can be found under the `examples/cli` directory.

LinkServiceDescription[🔗](./examples/cli/gmail.php)GmailIterates through all the messages in a gmail inbox### CLImax

[](#climax)

Examples using CLImax can be found under the `examples/climax` directory.

LinkServiceDescription[🔗](./examples/climax/gmail.php)GmailIterates through all the messages in a gmail inbox

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b21c12f271f981851aa9e0190050713165d2eef8c4fad0c919628e2834a3c06?d=identicon)[jalsoedesign](/maintainers/jalsoedesign)

---

Top Contributors

[![h2ooooooo](https://avatars.githubusercontent.com/u/1726275?v=4)](https://github.com/h2ooooooo "h2ooooooo (7 commits)")

### Embed Badge

![Health badge](/badges/jalsoedesign-persistent-oauth-google-client/health.svg)

```
[![Health](https://phpackages.com/badges/jalsoedesign-persistent-oauth-google-client/health.svg)](https://phpackages.com/packages/jalsoedesign-persistent-oauth-google-client)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
