PHPackages                             yljphp/google-authenticator - 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. yljphp/google-authenticator

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

yljphp/google-authenticator
===========================

Google 两步验证码

1.0.4(3y ago)04.2kMITPHPPHP &gt;=7.1.0

Since Mar 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yljphp/google-authenticator)[ Packagist](https://packagist.org/packages/yljphp/google-authenticator)[ Docs](https://github.com/yljphp/google-authenticator)[ RSS](/packages/yljphp-google-authenticator/feed)WikiDiscussions master Synced 3w ago

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

Google 两步登陆验证
=============

[](#google-两步登陆验证)

### laravel-admin 后台验证插件

[](#laravel-admin-后台验证插件)

1. 相对于验证码，安全很多；几乎是不会存在破解的方法
2. 验证码有时候无法识别，不方便操作
3. 一机一码，不会存在账号盗用的问题
4. 动态验证，每30秒生产一个验证码，安全更加保障

> composer require yljphp/google-authenticator

> php artisan migrate

```
'google-authenticator'=> [
    'enable' => true,
    'authenticatorname' => '' //名称
],
```

```
namespace App\Admin\Controllers;

use Yljphp\GoogleAuthenticator\Http\Controllers\AuthController as BaseAuthController;
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

5

Last Release

1377d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88b86734abb653d7d47d6b67eebb02cc63e8d06301d75b4beb21e0abd3c20ffe?d=identicon)[yljphp](/maintainers/yljphp)

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yljphp-google-authenticator/health.svg)

```
[![Health](https://phpackages.com/badges/yljphp-google-authenticator/health.svg)](https://phpackages.com/packages/yljphp-google-authenticator)
```

###  Alternatives

[james.xue/login-captcha

laravel-admin 登录验证码

3625.5k](/packages/jamesxue-login-captcha)[asundust/auth-captcha

Sliding captcha for Laravel-Admin auth, Multiple platform support / Laravel-Admin登录 滑动验证插件 多平台支持

603.8k](/packages/asundust-auth-captcha)[ghost/google-authenticator

Google 两步验证码

122.5k](/packages/ghost-google-authenticator)[manzhouya/auth-attempts

Add captcha and login attempts for laravel-admin

142.1k](/packages/manzhouya-auth-attempts)[iamtong/laravel-admin-login-check-safe

登录添加验证码，后台用户锁定，错误次数过多锁定，密码强制修改，添加密码修改记录，登录日志

102.5k](/packages/iamtong-laravel-admin-login-check-safe)

PHPackages © 2026

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