PHPackages                             rayful/hr-login-client - 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. rayful/hr-login-client

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

rayful/hr-login-client
======================

A client tool for other system to login use HR users.

1.0-beta3(8y ago)0189PHP

Since Oct 7Pushed 8y ago2 watchersCompare

[ Source](https://github.com/rayful/HRUserLoginClient)[ Packagist](https://packagist.org/packages/rayful/hr-login-client)[ RSS](/packages/rayful-hr-login-client/feed)WikiDiscussions master Synced 2d ago

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

HR User Login Client
====================

[](#hr-user-login-client)

一个可以使用HR系统的用户系统验证登录系统的客户端工具类。

安装
--

[](#安装)

composer require rayful/hr-login-client

### 基本用法

[](#基本用法)

首先可以将登录地址写入setting文件里面去，然后通过依赖注入去调用。

用例：

```
$root = "https://hr.system/user_check";

$client = new \rayful\Tool\HR\LoginClient($root);
try{
    $user = $client->tryGetUser("username","password");
    $this->saveSession($user);
}catch (\rayful\Tool\HR\LoginException $exception){
    $this->displayError($exception->getMessage());
    $this->logErrorCode($exception->getCode());
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

3133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1412a217896637f39725a032a9fc9c77c8feeb843daa3b5b696b8eb0fef53a94?d=identicon)[kingmaxyang](/maintainers/kingmaxyang)

---

Top Contributors

[![kingmaxyang](https://avatars.githubusercontent.com/u/4504653?v=4)](https://github.com/kingmaxyang "kingmaxyang (1 commits)")

### Embed Badge

![Health badge](/badges/rayful-hr-login-client/health.svg)

```
[![Health](https://phpackages.com/badges/rayful-hr-login-client/health.svg)](https://phpackages.com/packages/rayful-hr-login-client)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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