PHPackages                             leowebguy/google-oauth - 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. leowebguy/google-oauth

ActiveCraft-plugin[Authentication &amp; Authorization](/categories/authentication)

leowebguy/google-oauth
======================

A minimal Craft plugin to provide Google OAuth login

2.0(3w ago)03↓100%[1 issues](https://github.com/leowebguy/google-oauth/issues)proprietaryPHPPHP ^8.2

Since May 15Pushed 3w agoCompare

[ Source](https://github.com/leowebguy/google-oauth)[ Packagist](https://packagist.org/packages/leowebguy/google-oauth)[ RSS](/packages/leowebguy-google-oauth/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Google OAuth plugin for Craft
=============================

[](#google-oauth-plugin-for-craft)

A minimal Craft plugin to provide Google OAuth login

---

Installation
------------

[](#installation)

```
composer require "leowebguy/google-oauth" -w && php craft plugin/install google-oauth
```

Composer
--------

[](#composer)

Craft 4

```
"require": {
   "leowebguy/google-oauth": "^1.0",
}
```

Craft 5

```
"require": {
   "leowebguy/google-oauth": "^2.0",
}
```

Credentials
-----------

[](#credentials)

Gather the necessary info from GoogleOAuth

Go to

1. Select a Project
2. Create client
3. Pick "Web application"

[![Screenshot](resources/web-app.png)](resources/web-app.png)

4. Give it a name
5. Add "Authorized JavaScript origins" i.e.  (Optional)
6. Add "Authorized redirect URIs" i.e.

> The URI has to be "/oauth/g/auth"
> Added to your Craft App URL i.e.

[![Screenshot](resources/console.png)](resources/console.png)

7. Copy Client ID and Secret
8. Paste/Save /admin/settings/plugins/google-oauth

[![Screenshot](resources/settings.png)](resources/settings.png)

9. Add ID/Secret to .env (Optional)

```
### OAUTH
GOOGLE_CLIENT_ID=111-xxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=AAA-123qwe

```

[![Screenshot](resources/main-login.png)](resources/main-login.png)

[![Screenshot](resources/timeout-login.png)](resources/timeout-login.png)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

25d ago

Major Versions

1.0 → 2.02026-05-15

PHP version history (2 changes)1.0PHP ^8.1

2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/44216bb5de0cacbd3d995a1a71c3ee395bd36380305e547ac31452f86d4cd713?d=identicon)[leowebguy](/maintainers/leowebguy)

---

Top Contributors

[![leowebguy](https://avatars.githubusercontent.com/u/8460020?v=4)](https://github.com/leowebguy "leowebguy (11 commits)")

---

Tags

googleauthAuthenticationSSOoauthlogincraftcms

### Embed Badge

![Health badge](/badges/leowebguy-google-oauth/health.svg)

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

###  Alternatives

[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40821.3M84](/packages/auth0-auth0-php)[opauth/opauth

Multi-provider authentication framework for PHP

1.9k793.0k60](/packages/opauth-opauth)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2795.2M3](/packages/auth0-login)[socialconnect/auth

Social Connect Auth Component

566875.1k5](/packages/socialconnect-auth)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128790.7k](/packages/auth0-symfony)[auth0/wordpress

WordPress Plugin for Auth0

18122.7k](/packages/auth0-wordpress)

PHPackages © 2026

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