gilek / ewus
Library to simplify communication with the eWUŚ system.
4.0.1
2023-08-01 06:49 UTC
Requires
- ext-dom: *
- econea/nusoap: ^0.9.10
- sabre/xml: ^2.2
Requires (Dev)
- phpstan/phpstan: ^0.12.58
- phpstan/phpstan-phpunit: ^0.12.17
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: ^3.5
- symfony/var-dumper: ^3.4
This package is auto-updated.
Last update: 2024-10-30 01:37:25 UTC
README
Ewus
The Ewus library was created to simplify communication with the eWUŚ system.
At this moment, the functionality of the system is the same as the eWUŚ service in version 1.10.
Requirements
Ewus requires PHP version ^7.1
with DOM extension to work properly.
Usage
<?php use Gilek\Ewus\Client\Client; use Gilek\Ewus\Client\Credentials; $client = new Client( new Credentials('login', 'password', '15'), ); $response = $client->checkCwu('NNNNNNNNNNN'); var_dump($response); $client->logout();
The above code is designed to:
- Login the user to the eWUŚ system (the account is associated with the 15th NFZ department).
- Fetch information about the person with PESEL number NNNNNNNNNNN.
- Return the response as
\Gilek\Ewus\Response\CheckCwuResponse
object. - Logout of the eWUŚ system.