Skip to content

Repository files navigation

PHP eWUŚ

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

VersionPHP
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 = newHandler(newHttpConnection());
// (Optional) Enable sandbox mode for testing$handler->enableSandboxMode();
// Login$request = newLoginRequest('15', 'TEST1', 'qwerty!@#');
$login = $handler->handle($request);
// Check patient status$request = newCheckRequest($login->getSessionId(), $login->getToken(), '12345678901');
$check = $handler->handle($request);
// Change password$request = newChangePasswordRequest($login->getSessionId(), $login->getToken(), '15', 'TEST1', 'qwerty!@#', 'asdfgh#@!');
$changePassword = $handler->handle($request);
// Logout$request = newLogoutRequest($login->getSessionId(), $login->getToken());
$logout = $handler->handle($request);

About

PHP implementation for eWUŚ API

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages