PHPackages                             laravel-lib/gauth - 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. laravel-lib/gauth

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

laravel-lib/gauth
=================

Google Authenticator for Laravel

v1.1(1y ago)1115MITPHPPHP &gt;=7.4

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laravel-lib/gauth)[ Packagist](https://packagist.org/packages/laravel-lib/gauth)[ Docs](https://github.com/laravel-lib/gauth)[ RSS](/packages/laravel-lib-gauth/feed)WikiDiscussions main Synced 3w ago

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

Google Authenticator for Laravel
================================

[](#google-authenticator-for-laravel)

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

[](#installation)

```
composer require laravel-lib/gauth
```

Usage
-----

[](#usage)

To generate secret code

```
$secret_code = GAuth::generateSecret();

```

To generate QR Code URL image

```
$secret_code = GAuth::generateSecret();
$qrcode_img_url = GAuth::generateQrUrl('foo@bar.com', $secret_code, 'My App Name); // No semicolon (:) on App Name

```

To check the qrcode

```
$secret_code = GAuth::generateSecret();

$user_input = '123456';

if (!GAuth::checkCode($secret_code, $user_input)) {
    die('The code is invalid !');
    return;
}

```

To get current code

```
$secret_code = GAuth::generateSecret();

$current_code = GAuth::getCode($secret_code);

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

714d ago

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0|^8.1

v1.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/c92e85d2e4533b1b81d000b7772bbdea8d3fa666793c75e78c4b322851841d6f?d=identicon)[putera](/maintainers/putera)

---

Top Contributors

[![putera](https://avatars.githubusercontent.com/u/314314?v=4)](https://github.com/putera "putera (1 commits)")

---

Tags

laravelgoogleauthauthenticatorgauth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-lib-gauth/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-lib-gauth/health.svg)](https://phpackages.com/packages/laravel-lib-gauth)
```

###  Alternatives

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

83910.6M60](/packages/php-open-source-saver-jwt-auth)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M17](/packages/directorytree-ldaprecord-laravel)[auth0/login

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

2745.2M3](/packages/auth0-login)[jurager/teams

Laravel package to manage team functionality and operate with user permissions.

23720.8k](/packages/jurager-teams)

PHPackages © 2026

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