PHPackages                             salamek/zasilkovna - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. salamek/zasilkovna

ActiveLibrary[HTTP &amp; Networking](/categories/http)

salamek/zasilkovna
==================

Zasilkovna SOAP and REST client in PHP

4.1.0(11mo ago)1156.7k↓93.1%22[3 issues](https://github.com/Salamek/zasilkovna/issues)1LGPL-3.0PHPPHP ^8.2CI passing

Since Sep 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Salamek/zasilkovna)[ Packagist](https://packagist.org/packages/salamek/zasilkovna)[ Docs](https://github.com/salamek/zasilkovna)[ RSS](/packages/salamek-zasilkovna/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (1)

Zasilkovna client in PHP using SOAP or REST API
===============================================

[](#zasilkovna-client-in-php-using-soap-or-rest-api)

[![Integrity check](https://github.com/Salamek/zasilkovna/actions/workflows/main.yml/badge.svg)](https://github.com/Salamek/zasilkovna/actions/workflows/main.yml)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=D8LQ4XTBLV3C4&lc=CZ&item_number=SalamekZasilkovna&currency_code=EUR)

This library provides SOAP and REST API implementations. Additionaly Branch implementation to fetch and store branch data and label implementation to generate labels.

Installation
------------

[](#installation)

Install salamek/zasilkovna using [Composer](http://getcomposer.org/)

```
$ composer require salamek/zasilkovna
```

or if you want master branch code:

```
$ composer require salamek/zasilkovna
```

Documentation
-------------

[](#documentation)

See  for more info

Example code
------------

[](#example-code)

```
require "vendor/autoload.php";

$api = new Salamek\Zasilkovna\ApiRest($apiKey);
// OR Soap implementation $api = new Salamek\Zasilkovna\ApiSoap($apiKey);
$branch = new Branch($apiKey, new BranchStorageSqLite()); // There are multiple implementations of IBranchStorage BranchStorageSqLite using SQLite, BranchStorageFile using file in /tmp and BranchStorageMemory using simple variable (SLOW), You can implement your own by implementing IBranchStorage interface
$label = new Label($api, $branch);

// To greate new packet
$transporterPackage = new PacketAttributes(
	'ORDERID',
	'FirstName',
	'LastName',
	null,
	'addressId',
	null,
	'Company',
	'Email',
	'Phone',
	null,
	null,
	null,
	'www',
	false,
	'Street',
	'StreetNumber',
	'City',
	'ZipCode'
);

$api->createPacket($transporterPackage);

// Generate A4 label
$label->generateLabelFull($pdf, $transporterPackage);

// Generate A2 label
$label->generateLabelQuarter($pdf, $transporterPackage);

// Get full branch list as array
$branch->getBranchList();

// Returns branch detail by ID
$branch->find($branchId);
```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 73.2% 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 ~147 days

Recently: every ~117 days

Total

20

Last Release

357d ago

Major Versions

v1.1.2 → v2.0.02020-11-01

v2.0.1 → 3.02022-02-02

3.4.1 → 4.0.02025-03-27

PHP version history (3 changes)v1.0PHP &gt;=5.4.0

v2.0.0PHP &gt;=7.4.0

4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c21212e1504816757058ac5cee91f87aea0395f3d7e2d26a01e71aaefcadac0b?d=identicon)[Salamek](/maintainers/Salamek)

---

Top Contributors

[![Salamek](https://avatars.githubusercontent.com/u/1226241?v=4)](https://github.com/Salamek "Salamek (104 commits)")[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (24 commits)")[![martinknor](https://avatars.githubusercontent.com/u/2004222?v=4)](https://github.com/martinknor "martinknor (3 commits)")[![MikyWoW](https://avatars.githubusercontent.com/u/47429480?v=4)](https://github.com/MikyWoW "MikyWoW (2 commits)")[![radimvaculik](https://avatars.githubusercontent.com/u/461164?v=4)](https://github.com/radimvaculik "radimvaculik (2 commits)")[![DonSlon1](https://avatars.githubusercontent.com/u/88659557?v=4)](https://github.com/DonSlon1 "DonSlon1 (2 commits)")[![Walusyak](https://avatars.githubusercontent.com/u/20837611?v=4)](https://github.com/Walusyak "Walusyak (1 commits)")[![ne2d](https://avatars.githubusercontent.com/u/196135?v=4)](https://github.com/ne2d "ne2d (1 commits)")[![paveltizek](https://avatars.githubusercontent.com/u/4325109?v=4)](https://github.com/paveltizek "paveltizek (1 commits)")[![Rada87](https://avatars.githubusercontent.com/u/92973027?v=4)](https://github.com/Rada87 "Rada87 (1 commits)")[![SiViN](https://avatars.githubusercontent.com/u/17454320?v=4)](https://github.com/SiViN "SiViN (1 commits)")

---

Tags

label-printerrest-clientsoap-clientzasilkovnaapirestsoapZasilkovna

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/salamek-zasilkovna/health.svg)

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

###  Alternatives

[angelleye/paypal-php-library

PHP wrapper for PayPal APIs

243440.9k](/packages/angelleye-paypal-php-library)[mezzio/mezzio-problem-details

Problem Details for PSR-7 HTTP APIs addressing the RFC 7807 standard

271.1M24](/packages/mezzio-mezzio-problem-details)[phrest/api

REST API Package for Phalcon PHP

304.2k](/packages/phrest-api)

PHPackages © 2026

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