PHPackages                             tuanha/auth-api-gateway - 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. tuanha/auth-api-gateway

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

tuanha/auth-api-gateway
=======================

A package login with service auth

1.1.5(6y ago)028PHPPHP ^7.2

Since Dec 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ViralS-tuanha/Auth-Redis)[ Packagist](https://packagist.org/packages/tuanha/auth-api-gateway)[ RSS](/packages/tuanha-auth-api-gateway/feed)WikiDiscussions dev Synced 5d ago

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

Auth-Redis
==========

[](#auth-redis)

Sau khi tải package về. Cần thực hiện các bước sau để có thể sử dụng:

Cấu hình file env cho trùng với server Redis của Server Auth
------------------------------------------------------------

[](#cấu-hình-file-env-cho-trùng-với-server-redis-của-server-auth)

VD:

- `BROADCAST_DRIVER=log`
- `CACHE_DRIVER=file`
- `QUEUE_CONNECTION=sync`
- `SESSION_DRIVER=redis`
- `SESSION_LIFETIME=1200`
- `CACHE_PREFIX=LONGND`
- `REDIS_CLIENT=predis`
- `REDIS_HOST=127.0.0.1`
- `REDIS_PASSWORD=null`
- `REDIS_PORT=6379`

Sửa các file config cho phù hợp:
--------------------------------

[](#sửa-các-file-config-cho-phù-hợp)

- Thêm vào providers trong file app.php : `ViralMS\AuthApiGateway\AuthApiGatewayServiceProvider::class,`
- Ẩn dòng trong file database:`'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),`

Chạy publish vendor:
--------------------

[](#chạy-publish-vendor)

- chạy command: `php artisan vendor:publish --provider=ViralMS\AuthApiGateway\AuthApiGatewayServiceProvider`

Thay thế middleware Auth trong file Kernel.php ở biến $routeMiddleware:
-----------------------------------------------------------------------

[](#thay-thế-middleware-auth-trong-file-kernelphp-ở-biến-routemiddleware)

- `'auth' => \ViralMS\AuthApiGateway\AuthenticateRedis::class,`
- `'guest' => \ViralMS\AuthApiGateway\RedirectIfAuthenticatedRedis::class,`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

2335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/387fba74de8ee99150fc8b8662c0d8892d80f1af5001c4a7c7386649620329b5?d=identicon)[ViralS-tuanha](/maintainers/ViralS-tuanha)

---

Top Contributors

[![ViralS-tuanha](https://avatars.githubusercontent.com/u/53259313?v=4)](https://github.com/ViralS-tuanha "ViralS-tuanha (25 commits)")

### Embed Badge

![Health badge](/badges/tuanha-auth-api-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/tuanha-auth-api-gateway/health.svg)](https://phpackages.com/packages/tuanha-auth-api-gateway)
```

###  Alternatives

[ikechukwukalu/requirepin

A laravel package for pin confirmation and validation before processing requests to a specified route

24910.5k1](/packages/ikechukwukalu-requirepin)[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)
