PHPackages                             dartui/ewus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dartui/ewus

Abandoned → [etermed/ewus](/?search=etermed%2Fewus)ArchivedLibrary[API Development](/categories/api)

dartui/ewus
===========

eWUŚ integration for Laravel

1.0.4(7y ago)2148MITPHPPHP &gt;=5.6.4

Since Jul 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Dartui/laravel-ewus)[ Packagist](https://packagist.org/packages/dartui/ewus)[ Docs](http://grabania.pl)[ RSS](/packages/dartui-ewus/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

AS OF 2020-09-21 THIS PACKAGE IS UNMAINTAINED
=============================================

[](#as-of-2020-09-21-this-package-is-unmaintained)

Please switch to  or other implementation.

---

Laravel eWUŚ
============

[](#laravel-ewuś)

eWUŚ integration for Laravel

Usage
-----

[](#usage)

```
use Dartui\Ewus\Facade as Ewus;

class Foo {
	public function pesel() {
		// 1st param (int)      patient PESEL
		// 2nd param (int|bool) cache duration (in hours)
		// 3rd param (bool)     force request to eWUŚ (even if 2nd param is set to non-false value)
		$pesel = Ewus::pesel( '00000000000', 6 );

		if ( $pesel->hasError() ) {
			// do something with $pesel->getError()
		} elseif ( $pesel->hasInsurance() ) {
			$first_name   = $pesel->getFirstName();
			$last_name    = $pesel->getLastName();
			$operation_id = $pesel->getOperationID();
		}
	}

	// new password will be automatically stored in .ewus file
	public function password() {
		$new_password = 'secret';

		if ( Ewus::password( $new_password ) ) {
			echo 'Success!';
		} else {
			echo 'Error';
		}
	}
}
```

PeselResponse methods
---------------------

[](#peselresponse-methods)

- getResponse()
- getError()
- getStatus()
- getFirstName()
- getLastName()
- getOperationID()
- getDomain()
- hasError()
- hasResponse()
- hasInsurance()

Instalation
-----------

[](#instalation)

Require this package with composer:

```
composer require dartui/ewus
```

After updating composer, add the ServiceProvider to the providers array in `config/app.php`

> Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider

```
Dartui\Ewus\ServiceProvider::class
```

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish --provider=Dartui\\Ewus\\ServiceProvider
```

Add values to your `.env` file, for example:

```
EWUS_LOGIN=mylogin
EWUS_TYPE=SWD
EWUS_DOMAIN=11
EWUS_CODE=123456

```

And create `.ewus` file in root of your project in which will be stored password.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Total

5

Last Release

2858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95dd08b3f7f83eedb53d6a13b37a9c2121336d1ae1615e79d5b274e59d32ead8?d=identicon)[Dartui](/maintainers/Dartui)

---

Top Contributors

[![Dartui](https://avatars.githubusercontent.com/u/2657856?v=4)](https://github.com/Dartui "Dartui (19 commits)")

---

Tags

laravelpeselewusnfz

### Embed Badge

![Health badge](/badges/dartui-ewus/health.svg)

```
[![Health](https://phpackages.com/badges/dartui-ewus/health.svg)](https://phpackages.com/packages/dartui-ewus)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
