PHPackages                             pesovo/erecept - 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. pesovo/erecept

ActiveLibrary

pesovo/erecept
==============

Client for SUKL eRecept portal in Czech Republic

3811PHP

Since Nov 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pesovo/eRecept)[ Packagist](https://packagist.org/packages/pesovo/erecept)[ RSS](/packages/pesovo-erecept/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Instalace
=========

[](#instalace)

```
> composer require pesovo/erecept

```

Použití
=======

[](#použití)

```
$configuration = new Configuration(
	Environment::get(Environment::CUER_DOCTOR),
	EreceptVersion::get(EreceptVersion::V_201704A),
	'1234567890',
	'cesta k ssl certifikatu',
	'heslo k ssl certifikatu'
);

$userPersonalData = new UserPersonalData(
	'cesta k privatnimu klici',
	'heslo k privatnimu klici',
	'cesta k uzivatelskemu certfikatu',
	'SUKL uzivatelske uid',
	'SUKL uzivatelske heslo'
);

$client = new Client(
	$configuration,
	new GuzzleSoapClientDriver(
		new \GuzzleHttp\Client(
			[
				\GuzzleHttp\RequestOptions::VERIFY => \Composer\CaBundle\CaBundle::getBundledCaBundlePath(),
				\GuzzleHttp\RequestOptions::CERT => [$configuration->getHttpsCertificate() , $configuration->getHttpsCertificatePassword()],
			]
		),
		'BASIC ' . \base64_encode(\sprintf('%s:%s', $userPersonalData->getUserUid(), $userPersonalData->getUserPassword()))
	),
	new CryptographyService($userPersonalData),
	true
);

$appPingZep = new AppPingZEP(
	new Message(
		$configuration->getVersion(),
		new \DateTimeImmutable('now', new \DateTimeZone('Europe/Prague')),
		'0123456789AB'
	)
);

try {
	$response = $client->send(new AppPingZepRequest($appPingZep));
	print_r($response);
} catch (\Throwable $th) {
	echo 'error ' . $th->getMessage() . PHP_EOL;
}
```

První nastavení pro testy
=========================

[](#první-nastavení-pro-testy)

1. nahrát ssl certifikát do složky erecept/cert
2. nahrát privátní klíč a osobní certifikát do složky erecept/cert
3. zkopírovat erecept/tests/erecept.neon.example do erecept/tests/erecept.neon
4. nastavit proměnné v erecept/tests/erecept.neon

Spustit docker a testy
======================

[](#spustit-docker-a-testy)

```
> cd /erecept
> docker-compose up -d
> docker exec -it php7.1_erecet bash
> cd /srv
> php vendor/bin/phing

```

Konverze certifikátů
====================

[](#konverze-certifikátů)

Sukl pošle soubor pfx, pro PHP ho musíme překonvertovat na PEM. Příkaz je následovný:

` > openssl pkcs12 -in cuer_lekar.pfx -out cuer_lekar.pem -clcerts`

Přehled metod a jejich implementace
===================================

[](#přehled-metod-a-jejich-implementace)

MetodaUrčeníImplementaceAppPingVšichniANOAppPingZEPVšichniANONacistCiselnikChybVšichniANONacistVerzeVšichniANOZalozitPredpisLékařANOZmenitPredpisLékařANOZrusitPredpisLékařANONacistInformaceOZrusenemPredpisuLékařNENacistPredpisVšichniNEStahnoutPruvodkuVšichniNEZalozitVydejLékárníkNEZmenitVydejLékárníkNEZrusitVydejLékárníkNENacistInformaceOZrusenemVydejiVšichniNENacistVydejVšichniNEZmenitStavPredpisuLékárníkNEDigitalizovatPredpisLékárníkNEZmenitPojistovnuPredpisuLékárníkNESeznamPredpisuLékařNESeznamVydejuPredepisujicihoLékařNEPripravitVydejePredepisujicihoLékařNEStahnoutVydejePredepisujicihoLékařNEPrevzitVydejePredepisujicihoLékařNEOveritPredpisLékařNEOveritVydejLékárníkNEZalozitVydejOTCLékárníkNEZmenitVydejOTCLékárníkNEZrusitVydejOTCLékárníkNENacistVydejOTCLékárníkNENacistInformaceOZrusenemVydejiOTCLékárníkNE

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/28079f1756d8431e681d477a732720a1264dcfac51a7370bd7156614ce84d034?d=identicon)[pesovo](/maintainers/pesovo)

---

Top Contributors

[![pesektomas](https://avatars.githubusercontent.com/u/1737966?v=4)](https://github.com/pesektomas "pesektomas (12 commits)")

### Embed Badge

![Health badge](/badges/pesovo-erecept/health.svg)

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

PHPackages © 2026

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