PHPackages                             lailezoule-wsg/login-reg - 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. lailezoule-wsg/login-reg

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

lailezoule-wsg/login-reg
========================

Framework-agnostic login/register core logic -- wsg-test

v1.0.0(3mo ago)01↓88.9%MITPHPPHP ^8.0

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/lailezoule-wsg/LoginTegPackage)[ Packagist](https://packagist.org/packages/lailezoule-wsg/login-reg)[ RSS](/packages/lailezoule-wsg-login-reg/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

安装
--

[](#安装)

composer require lailezoule-wsg/login-reg

快速开始
----

[](#快速开始)

1. 实现 `UserRepositoryInterface`（对接你的数据库）
2. 实例化服务： $repo = new YourUserRepository(); $auth = new LoginService($repo, new NativePasswordHasher()); $user = $auth-&gt;authenticate('', 'pass');
3. 根据返回 $user 设置 Session / JWT

扩展建议
----

[](#扩展建议)

- 密码重置：生成令牌 + 邮件发送（包提供令牌生成逻辑，发送由用户实现）
- 邮箱验证：提供验证令牌生成/校验方法
- 事件钩子：在服务中触发 preRegister/postLogin 事件（通过 PSR-14 EventDispatcher）

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance82

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Unknown

Total

1

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7faa6e37d49d682aa0e79856f0e5f27a000e7f9b5925443770fe84c82b7234c3?d=identicon)[lailezoule-wsg](/maintainers/lailezoule-wsg)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lailezoule-wsg-login-reg/health.svg)

```
[![Health](https://phpackages.com/badges/lailezoule-wsg-login-reg/health.svg)](https://phpackages.com/packages/lailezoule-wsg-login-reg)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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