nextgen-tech/ewus
最新稳定版本:v1.1.4
Composer 安装命令:
composer require nextgen-tech/ewus
包简介
README 文档
README
This package is PHP implementation of eWUŚ (Elektroniczna Weryfikacja Uprawnień Świadczeniobiorców). It has coded each available operation - login, logout, check patient status and change password. It is compliment with newest version (5.0), which contans additional information about patient (e.g. information about COVID-19 quarantine and isolation).
ToC
Requirements
| Version | PHP |
|---|---|
| 1.x | >= 7.3 |
This package requires ext-dom to be installed on server. Optionally HTTP connection (via Guzzle) can be switched to native SOAP Client. In this case also ext-soap must be installed.
Installation
composer require nextgen-tech/ewus
Usage
// Create once handler instance $handler = new Handler(new HttpConnection()); // (Optional) Enable sandbox mode for testing $handler->enableSandboxMode(); // Login $request = new LoginRequest('15', 'TEST1', 'qwerty!@#'); $login = $handler->handle($request); // Check patient status $request = new CheckRequest($login->getSessionId(), $login->getToken(), '12345678901'); $check = $handler->handle($request); // Change password $request = new ChangePasswordRequest($login->getSessionId(), $login->getToken(), '15', 'TEST1', 'qwerty!@#', 'asdfgh#@!'); $changePassword = $handler->handle($request); // Logout $request = new LogoutRequest($login->getSessionId(), $login->getToken()); $logout = $handler->handle($request);
统计信息
- 总下载量: 135
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-29