PHPackages                             narekmarkosyan/laravel-admin-telegram-two-factor - 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. narekmarkosyan/laravel-admin-telegram-two-factor

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

narekmarkosyan/laravel-admin-telegram-two-factor
================================================

Add Telegram based two factor authentication to laravel-admin

v0.0.3(4mo ago)055MITPHPPHP &gt;=7.4.0

Since May 9Pushed 1mo agoCompare

[ Source](https://github.com/narekmarkosyan/laravel-admin-telegram-two-factor)[ Packagist](https://packagist.org/packages/narekmarkosyan/laravel-admin-telegram-two-factor)[ Docs](https://github.com/narekmarkosyan/laravel-admin-telegram-two-factor)[ RSS](/packages/narekmarkosyan-laravel-admin-telegram-two-factor/feed)WikiDiscussions master Synced 1mo ago

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

Telegram two-factor authentication for laravel-admin
====================================================

[](#telegram-two-factor-authentication-for-laravel-admin)

Inspired from

Adds two-factor authentication to admin login, admin will be sent a message in Telegram with a 6-digit code to complete sign in.

### Notes

[](#notes)

A new "telegram\_id" field is added to the database as laravel-admin does not have this by default. Once installed and migrations completed, you will need to set each user's telegram ID via the database. No way of doing it via UI has been implemented at this time.

### Installation

[](#installation)

```
composer require narekmarkosyan/laravel-admin-telegram-two-factor

```

### Migration

[](#migration)

Add telegram\_id field to admin users table.

```
php artisan migrate

```

### Configuration

[](#configuration)

In the extensions section of the `config/admin.php` file, add configurations

```
'extensions' => [
    'auth-telegram-two-factor' => [
        'enable' => (bool)env('ADMIN_AUTH_TELEGRAM_TWO_FACTOR', true),
        'botKey' => env('ADMIN_AUTH_TELEGRAM_TWO_FACTOR_BOT_KEY', true),
        'pinLength' => (int)env('ADMIN_AUTH_TELEGRAM_TWO_FACTOR_PIN_LENGTH', 6),
        'rememberDays' => (bool)env('ADMIN_AUTH_TELEGRAM_TWO_FACTOR_REMEMBER_DAYS', 1),
    ]
]

```

In the `.env` file, add configurations

```
ADMIN_AUTH_TELEGRAM_TWO_FACTOR=true
ADMIN_AUTH_TELEGRAM_TWO_FACTOR_BOT_KEY=123456789:AABBB_ZXCVBNMdfghjXCVvb_AA
ADMIN_AUTH_TELEGRAM_TWO_FACTOR_PIN_LENGTH=6
ADMIN_AUTH_TELEGRAM_TWO_FACTOR_REMEMBER_DAYS=1

```

### License

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance82

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.6% 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 ~477 days

Total

3

Last Release

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b2ac2166622ca39b9f548ef6abdb99132814d87b13f9e0eb88027f3fb5a0945?d=identicon)[narekmarkosyan](/maintainers/narekmarkosyan)

---

Top Contributors

[![narekmarkosyan](https://avatars.githubusercontent.com/u/2436875?v=4)](https://github.com/narekmarkosyan "narekmarkosyan (11 commits)")[![shanerutter](https://avatars.githubusercontent.com/u/1963677?v=4)](https://github.com/shanerutter "shanerutter (2 commits)")

---

Tags

extensionlaravel-admin

### Embed Badge

![Health badge](/badges/narekmarkosyan-laravel-admin-telegram-two-factor/health.svg)

```
[![Health](https://phpackages.com/badges/narekmarkosyan-laravel-admin-telegram-two-factor/health.svg)](https://phpackages.com/packages/narekmarkosyan-laravel-admin-telegram-two-factor)
```

###  Alternatives

[asundust/auth-captcha

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

593.6k](/packages/asundust-auth-captcha)[james.xue/login-captcha

laravel-admin 登录验证码

3725.4k](/packages/jamesxue-login-captcha)[manzhouya/auth-attempts

Add captcha and login attempts for laravel-admin

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

Google 两步验证码

122.5k](/packages/ghost-google-authenticator)[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)
