PHPackages                             steelze/google-one-tap - 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. steelze/google-one-tap

ActiveLibrary

steelze/google-one-tap
======================

Google One Tap Login For Laravel

v0.2.0-beta(3y ago)021MITPHPPHP ^7.4|^8.0

Since Jul 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/steelze/google-one-tap)[ Packagist](https://packagist.org/packages/steelze/google-one-tap)[ Docs](https://github.com/steelze/google-one-tap)[ RSS](/packages/steelze-google-one-tap/feed)WikiDiscussions main Synced 2d ago

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

Google One Tap Login
====================

[](#google-one-tap-login)

[![Latest Version on Packagist](https://camo.githubusercontent.com/be88e1b494f77648f22a16891979c91bac5cb532b5bd9d380ec7f785191a5a57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737465656c7a652f676f6f676c652d6f6e652d7461702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/steelze/google-one-tap)[![Total Downloads](https://camo.githubusercontent.com/bdee1b6f86fc367653151df751a5b210a04a85ef39595495290008ac44e9d951/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737465656c7a652f676f6f676c652d6f6e652d7461702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/steelze/google-one-tap)[![GitHub Actions](https://github.com/steelze/google-one-tap/actions/workflows/main.yml/badge.svg)](https://github.com/steelze/google-one-tap/actions/workflows/main.yml/badge.svg)

This package integrates Google's one tap login into a laravel project.

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

[](#installation)

You can install the package via composer:

```
composer require steelze/google-one-tap
```

The service provider will automatically be registered.

Next, you must publish the config file:

```
php artisan vendor:publish --tag=google-one-tap
```

This is the contents of the default configuration file. Here you can modify configurations .

```
return [

    /*
    |--------------------------------------------------------------------------
    | Google Client ID
    |--------------------------------------------------------------------------
    |
    | This value is your Google app's client ID, which is found
    | and created in the Google Developers Console.
    |
    */

    'client_id' => env('GOOGLE_CLIENT_ID'),

    /*
    |--------------------------------------------------------------------------
    | Enable Google One Tap
    |--------------------------------------------------------------------------
    |
    | This determines whether to display One tap or not. The default value is
    | true. Google One tap will not be displayed when this value is false
    |
    */

    'enable' => (bool) env('ENABLE_GOOGLE_ONE_TAP', true),

    /*
    |--------------------------------------------------------------------------
    | Login URI
    |--------------------------------------------------------------------------
    |
    | This specifies the the URI of your login endpoint. The ID token credential
    | response is posted to this endpoint when no callback function is defined
    | and a user clicks on the One Tap buttons, or automatic sign takes place.
    |
    */

    'login_uri' => '',

    /*
    |--------------------------------------------------------------------------
    | Cancel on Outside Click
    |--------------------------------------------------------------------------
    |
    | This attribute sets whether or not to cancel the One Tap request if the
    | user clicks outside of the prompt. The default value is true. To disable it,
    | set the value to false.
    |
    */

    'cancel_on_tap_outside' => false,

    /*
    |--------------------------------------------------------------------------
    | Context
    |--------------------------------------------------------------------------
    |
    | Changes the text of the title and messages shown in the One Tap prompt
    | Supported: "use", "signin", "signup"
    |
    */

    'context' => 'use',

    /*
    |--------------------------------------------------------------------------
    | itp_support
    |--------------------------------------------------------------------------
    |
    | This field determines if the upgraded One Tap UX should be enabled on
    | browsers that support Intelligent Tracking Prevention (ITP).
    | The default value is false. See the following for further
    | information: https://developers.google.com/identity/gsi/web/guides/features#upgraded_ux_on_itp_browsers
    |
    */

    'itp_support' => false,

    /*
    |--------------------------------------------------------------------------
    | Custom Attributes
    |--------------------------------------------------------------------------
    |
    | Custom data attributes, which are sent to your login endpoint with the
    | ID token retrieved from Google.
    |
    */
    'custom' => [

    ]
];
```

Usage
-----

[](#usage)

Update the login uri in the config file. The specified uri will be called by google and the credential is posted to this endpoint

```
// config/google-one-tap.php
/*
|--------------------------------------------------------------------------
| Login URI
|--------------------------------------------------------------------------
|
| This specifies the the URI of your login endpoint. The ID token credential
| response is posted to this endpoint when no callback function is defined
| and a user clicks on the One Tap buttons, or automatic sign takes place.
|
*/

'login_uri' => '',
```

Within the route callback handler, call the `GoogleOneTapFacade::getUserFromProvider()` method. This method will return an array of the logged in user details or throw an exception if an error occured.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Odunayo Ogungbure](https://github.com/steelze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1385d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e9a50cdbcf82b2957d2b18c2182aa7a90546b03a272cdaf3e364daf46673bbe?d=identicon)[steelze](/maintainers/steelze)

---

Top Contributors

[![steelze](https://avatars.githubusercontent.com/u/39153860?v=4)](https://github.com/steelze "steelze (17 commits)")

---

Tags

Google One Tapsteelze

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/steelze-google-one-tap/health.svg)

```
[![Health](https://phpackages.com/badges/steelze-google-one-tap/health.svg)](https://phpackages.com/packages/steelze-google-one-tap)
```

###  Alternatives

[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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