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(2mo ago)177[1 PRs](https://github.com/runthis/laravel-google-auth/pulls)MITBladePHP ^8.3CI passing

Since Jun 28Pushed 1w 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 3w ago

READMEChangelog (8)Dependencies (20)Versions (11)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

49

—

FairBetter than 94% of packages

Maintenance92

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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

77d 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] (63 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (56 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/socialite

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

5.7k108.5M873](/packages/laravel-socialite)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M161](/packages/spatie-laravel-health)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)

PHPackages © 2026

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