PHPackages                             runthis/laravel-google-auth - 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. runthis/laravel-google-auth

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

runthis/laravel-google-auth
===========================

Set up google authentication in laravel

3.0.0(4mo ago)184[2 PRs](https://github.com/runthis/laravel-google-auth/pulls)MITBladePHP ^8.3CI passing

Since Jun 28Pushed 4w ago1 watchersCompare

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

READMEChangelog (8)Dependencies (20)Versions (13)Used By (0)

Laravel Google Authentication
=============================

[](#laravel-google-authentication)

A tiny laravel package to authenticate users via google with domain verification.

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

[](#installation)

```
composer require runthis/laravel-google-auth

```

Setup
-----

[](#setup)

##### Google

[](#google)

Head over to  and set up some oauth credentials. Note the client id.

##### Laravel

[](#laravel)

Open up your .env file and add the following keys and adjust as necessary.

```
GOOGLE_CLIENT_ID="xxx.apps.googleusercontent.com"
GOOGLE_BASE_ROUTE="/login"
GOOGLE_AUTH_ROUTE="/auth/callback"
GOOGLE_VALID_DOMAIN="domain.com"

```

With the above environment variables; When a user visits /login in your application, they will be presented with a page containing a button to sign in with Google.

Usage
-----

[](#usage)

Package emits `Runthis\Login\Events\UserWasAuthenticatedWithGoogle` when google login is successful and contains an array payload with various keys provided by google (name, email, picture, etc).

Create a listener in Laravel. Add `use Runthis\Login\Events\UserWasAuthenticatedWithGoogle;`. Set the handle method parameter to `UserWasAuthenticatedWithGoogle $event`. Handle the event as you want (logging the user in, adding to database if you like, etc).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~347 days

Total

5

Last Release

124d ago

Major Versions

1.0.2 → 2.0.22023-02-26

2.0.2 → 3.0.02026-04-15

PHP version history (3 changes)1.0.0PHP ^8.0

2.0.2PHP ^8.1

3.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/11a8cb5aa101463ea8da7c821f10fa6e49e504935898e715bb1504c875a0f00a?d=identicon)[runthis](/maintainers/runthis)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (66 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (59 commits)")[![runthis](https://avatars.githubusercontent.com/u/8216720?v=4)](https://github.com/runthis "runthis (32 commits)")

---

Tags

authenticationgooglelaravellaravellogin

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/runthis-laravel-google-auth/health.svg)

```
[![Health](https://phpackages.com/badges/runthis-laravel-google-auth/health.svg)](https://phpackages.com/packages/runthis-laravel-google-auth)
```

###  Alternatives

[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k113.1M997](/packages/laravel-socialite)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)

PHPackages © 2026

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