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(2y ago)1118MITPHPPHP &gt;=7.4

Since Mar 11Pushed 2y 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 1w 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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

759d 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

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

LDAP Authentication &amp; Management for Laravel.

5732.5M22](/packages/directorytree-ldaprecord-laravel)[jurager/teams

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

23723.3k](/packages/jurager-teams)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1614.0k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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