PHPackages                             salamek/czech-post-api - 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. salamek/czech-post-api

ActiveLibrary[API Development](/categories/api)

salamek/czech-post-api
======================

Czech Post api(unofficial), parsing html of filings online portal

v1.0.4(6y ago)613.6k3[1 issues](https://github.com/Salamek/czech-post-api/issues)[1 PRs](https://github.com/Salamek/czech-post-api/pulls)1BSD-3-ClausePHPPHP &gt;=5.3.0

Since Sep 8Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Salamek/czech-post-api)[ Packagist](https://packagist.org/packages/salamek/czech-post-api)[ Docs](https://github.com/Salamek/czech-post-api)[ RSS](/packages/salamek-czech-post-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (1)

Czech post API client in PHP (Parsing podani online)
====================================================

[](#czech-post-api-client-in-php-parsing-podani-online)

[![Build Status](https://camo.githubusercontent.com/2810885988b389f0cb57a1b3c4f7059c9af982afe4e13f6eb62a6b2e1bcd69f1/68747470733a2f2f7472617669732d63692e6f72672f53616c616d656b2f637a6563682d706f73742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Salamek/czech-post-api)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=D8LQ4XTBLV3C4&lc=CZ&item_number=Salamekczech-post-api&currency_code=EUR)

Czech post API client in PHP (Parsing podani online) with custom Label generator

Requirements
------------

[](#requirements)

- PHP 5.4 or higher

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

[](#installation)

Install salamek/czech-post-api using [Composer](http://getcomposer.org/)

```
$ composer require salamek/czech-post-api
```

or if you want master branch code:

```
$ composer require salamek/czech-post-api:dev-master
```

Usage
-----

[](#usage)

### Create Packages

[](#create-packages)

Creates package/s on Ceska posta

```
$username = 'my_api_username';
$password = 'my_api_password';
$cookieJar = __DIR__.'/cookieJar.txt';

$czechPostApi = new Salamek\CzechPostApi\Api($username, $password, $cookieJar);

$sender = new Salamek\CzechPostApi\Model\Sender('C9569', 'Olomouc', 'My Compamy s.r.o.', 'My Address', '77900', 'info@example.com', '+420123456789', 'http://www.example.cz', Country::CZ);
$recipient = new Salamek\CzechPostApi\Model\Recipient('Olomouc', 'Adam Schubert', 'My Address', '77900', 'adam@example.com', '+420123456789', 'http://www.salamek.cz', Country::CZ, 'My Compamy a.s.');

$myPackageIdFromNumberSeries = 115;
$weight = 3.15;
$insurance = 100;
$package = new Salamek\CzechPostApi\Model\Package($myPackageIdFromNumberSeries, Product::PACKAGE_TO_HAND, $sender, $recipient, null, null, $insurance, [], 'Package desc', 1, 1, null);

try
{
    $czechPostApi->createPackages([$package]);
}
catch (\Exception $e)
{
    echo $e->getMessage() . PHP_EOL;
}
```

### Get Labels

[](#get-labels)

Returns PDF with label/s for print on paper, two decompositions are supported, LabelDecomposition::FULL (one A4 Label per page) or LabelDecomposition::QUARTER (one label per 1/4 of A4 page)

```
$sender = new Salamek\CzechPostApi\Model\Sender('Olomouc', 'My Compamy s.r.o.', 'My Address', '77900', 'info@example.com', '+420123456789', 'http://www.example.cz', Country::CZ);
$recipient = new Salamek\CzechPostApi\Model\Recipient('Olomouc', 'Adam Schubert', 'My Address', '77900', 'adam@example.com', '+420123456789', 'http://www.salamek.cz', Country::CZ, 'My Compamy a.s.');

$myPackageIdFromNumberSeries = 115;
$weight = 3.15;
$insurance = 100;
$package = new Salamek\CzechPostApi\Model\Package($myPackageIdFromNumberSeries, Product::PACKAGE_TO_HAND, $sender, $recipient, null, null, $insurance, [], 'Package desc', 1, 1, null);

$rawPdf = Label::generateLabels([$package]);
file_put_contents($package->getPackageNumber() . '.pdf', $rawPdf);
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~180 days

Total

5

Last Release

2494d ago

### 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 (13 commits)")[![JamesTheCode](https://avatars.githubusercontent.com/u/8877134?v=4)](https://github.com/JamesTheCode "JamesTheCode (1 commits)")

---

Tags

apiczech postČeská pošta

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salamek-czech-post-api/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[tecnickcom/tc-lib-pdf

PHP PDF Library

1.9k489.4k10](/packages/tecnickcom-tc-lib-pdf)[balanced/balanced

Client for Balanced API

72373.2k](/packages/balanced-balanced)[salamek/ppl-my-api

Professional Parcel Logistic MyApi client in PHP

29383.5k2](/packages/salamek-ppl-my-api)[maksekeskus/maksekeskus-php

Maksekeskus PHP SDK

13191.7k](/packages/maksekeskus-maksekeskus-php)[nlpcloud/nlpcloud-client

NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, embeddings, and dependency parsing. It is ready for production, served through a REST API. This is the PHP client for the API. More details here: https://nlpcloud.com. Documentation: https://docs.nlpcloud.com. Github: https://github.com/nlpcloud/nlpcloud-php

2425.5k1](/packages/nlpcloud-nlpcloud-client)

PHPackages © 2026

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