nextgen-tech/ewus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Requirements
  2. Installation
  3. Usage

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-29