PHPackages                             jose-chan/user-login - 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. jose-chan/user-login

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

jose-chan/user-login
====================

user login for laravel

v3.1.0(4y ago)0301MITPHPPHP ^7.1.3CI failing

Since Jan 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ILoveJoseM/user-login)[ Packagist](https://packagist.org/packages/jose-chan/user-login)[ RSS](/packages/jose-chan-user-login/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (22)Used By (1)

用户登录组件
======

[](#用户登录组件)

安装
--

[](#安装)

```
composer require "jose-chan/user-login" -vvv

```

发布
--

[](#发布)

```
php artisan vendor:publish --tag=user-login

```

表结构导入
-----

[](#表结构导入)

`php artisan migrate --path=vendor/jose-chan/user-login/database/migrations`

使用
--

[](#使用)

默认路由是:

- 账密登录

`http://localhost/login`

- 小程序登录

`http://localhost/login/wxapp`

控制器位置在 `vendor/jose-chan/user-login/src/Controllers`， 命名空间为 `\JoseChan\UserLogin\Controllers`， 默认的路由位置为`vendor/jose-chan/user-login/routes/routes.php`， 如果需要自定义路由，请参照laravel的路由设置配置

#### 配置

[](#配置)

修改配置文件`config/user_login.php`

```

```

#### 模型

[](#模型)

- 模型必须实现UserModelInterface

#### 中间件

[](#中间件)

类别称功能`\JoseChan\UserLogin\Middleware\Dispatch`dispatch校验token并初始化用户信息（请求头Authorization传参）`\JoseChan\UserLogin\Middleware\JWTDispatch`jwt.dispatch校验token并初始化用户信息（token参数传参）`\JoseChan\UserLogin\Middleware\LoginCheck`login.check检查用户登录状态

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~154 days

Total

21

Last Release

1562d ago

Major Versions

v0.1.3 → v1.0.02020-01-22

v0.1.4 → v1.0.12020-02-29

v1.0.3 → v2.0.0-beta2020-05-04

v2.0.0 → 3.0.x-dev2020-05-20

v0.0.4 → v3.1.02022-01-28

### Community

Maintainers

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

---

Top Contributors

[![524233828](https://avatars.githubusercontent.com/u/11416856?v=4)](https://github.com/524233828 "524233828 (16 commits)")

---

Tags

laravellogin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jose-chan-user-login/health.svg)

```
[![Health](https://phpackages.com/badges/jose-chan-user-login/health.svg)](https://phpackages.com/packages/jose-chan-user-login)
```

###  Alternatives

[auth0/login

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

2745.0M3](/packages/auth0-login)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[mad-web/laravel-social-auth

Easy social auth integration with a lot of available providers

516.7k](/packages/mad-web-laravel-social-auth)

PHPackages © 2026

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