library hr-login-client
A client tool for other system to login use HR users.
rayful/hr-login-client
A client tool for other system to login use HR users.
- Sunday, October 15, 2017
- by kingmaxyang
- Repository
- 2 Watchers
- 0 Stars
- 99 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 10 % Grown
HR User Login Client
一个可以使用HR系统的用户系统验证登录系统的客户端工具类。, (*1)
安装
composer require rayful/hr-login-client, (*2)
基本用法
首先可以将登录地址写入setting文件里面去,然后通过依赖注入去调用。, (*3)
用例:, (*4)
$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());
}
dev-master
9999999-dev
A client tool for other system to login use HR users.
Sources
Download
The Requires
by
kingmax
1.0-beta3
1.0.0.0-beta3
A client tool for other system to login use HR users.
Sources
Download
The Requires
by
kingmax
1.0-beta2
1.0.0.0-beta2
A client tool for other system to login use HR users.
Sources
Download
The Requires
by
kingmax
1.0-beta
1.0.0.0-beta
A client tool for other system to login use HR users.
Sources
Download
The Requires
by
kingmax