client library for Sormware's Pohoda mServer
genericUtilityapt install php-vitexsoftware-pohoda-connectorPHP library for communication with Pohoda mServer. . This package provides a simple way to communicate with Pohoda mServer using PHP.
client library for Stormware's mPohoda mServer
The PHP-Pohoda-Connector library provides a set of features to interact with the Pohoda accounting software. Below are some of the key features along with code examples:
Install using composer:
composer require vitexsoftware/pohoda-connector
Or clone https://github.com/VitexSoftware/PHP-Pohoda-Connector.git
Classess check at startup for this constants or environment variables:
Pohoda always produces XML encoded in windows-1250. This library will automatically convert all incoming XML to UTF-8 before processing. As a result, all parsed data and strings you receive from this library will be in UTF-8 encoding, regardless of the original XML encoding.
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$client = new \mServer\Client();
if (\Ease\Shared::cfg('APP_DEBUG')) {
$client->logBanner();
}
echo $client->isOnline() ? 'Online' : 'Offline';
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$addressBookRecord = [
'identity' => [
'address' => [
'company' => 'Vitex Software',
'name' => 'Vítězslav Dvořák',
'city' => 'Prague',
'street' => 'Long',
'zip' => '15800',
'ico' => '69438676',
'dic' => 'CZ7808072811',
],
],
'mobil' => '739 778 202',
'web' => 'https://www.vitexsoftware.cz',
];
$addresser = new Adressbook($addressBookRecord);
$addresser->addToPohoda();
if ($addresser->commit()) {
print_r($addresser->response->producedDetails);
}
This feature allows you to create a new invoice.
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
$invoiceRecord = [
'invoiceType' => 'issuedInvoice',
'date' => date('Y-m-d'),
'accounting' => ['ids' => '3Fv'],
'text' => 'Faktura za zboží bez adresy',
'paymentType' => 'draft',
'note' => 'Import XML.',
'intNote' => 'Tento doklad byl vytvořen importem přes XML z PHP.',
'invoiceSummary' => [
'roundingDocument' => 'math2one',
'homeCurrency' => [
'priceNone' => 3018,
'priceLow' => 60000,
'priceHighSum' => 557,
],
],
];
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$invoicer = new Invoice($invoiceRecord);
$itemRecord = [
'text' => 'Židle Z220',
'quantity' => 1.0,
'unit' => 'ks',
'payVAT' => false,
'rateVAT' => 'high',
'homeCurrency' => [
'unitPrice' => 1968,
'price' => 1968,
'priceVAT' => 413.28,
'priceSum' => 2381.28,
],
'code' => 'Z220',
'stockItemIDS' => 'Z220',
];
$invoicer->addItem($itemRecord);
$invoicer->addToPohoda();
if ($invoicer->commit()) {
print_r($invoicer->response->producedDetails);
}
This feature allows you to read an addressbook record.
<?php
require_once '../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$addresser = new \mServer\Addressbook();
print_r($addresser->getColumnsFromPohoda(['id', 'jmeno', 'email', 'web']));
See usage examples in tests directory
Some of Projects using pohoda-connector:
Many thanks to Riešenia, spol. s r.o. for its library https://github.com/riesenia/pohoda
See my other libraries: https://github.com/Spoje-NET/PohodaSQL , https://github.com/Spoje-NET/php-abraflexi

pool/main/p/php-vitexsoftware-pohoda-connector/php-vitexsoftware-pohoda-connector_0.4.2.49~bookworm_amd64.deb
php-vitexsoftware-pohoda-connector| Název souboru | pool/main/p/php-vitexsoftware-pohoda-connector/php-vitexsoftware-pohoda-connector_0.4.2.49~bookworm_amd64.deb |
| Verze | 0.4.2.49~bookworm |
| Stáří ve dnech | 438 |
| Datum vydání | 2025 08. 26. |
| Velikost | 40.88 KB |
| id | 3092 |
| Jméno | php-vitexsoftware-pohoda-connector |
| Balíček | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | bookworm |
| Suite | main |
| Source | |
| Architecture | binary-amd64 |
| MultiArch | foreign |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 403 |
| Depends | php-curl , php-xml , php-vitexsoftware-ease-core , composer |
| PreDepends | |
| Breaks | |
| Enhances | |
| Section | fintech |
| Priority | optional |
| Popis | client library for Sormware's Pohoda mServer |
| LongDescription | PHP library for communication with Pohoda mServer..This package provides a simple way to communicate with Pohoda mServerusing PHP. |
| AutoBuiltPackage | |
| Název souboru | pool/main/p/php-vitexsoftware-pohoda-connector/php-vitexsoftware-pohoda-connector_0.4.2.49~bookworm_amd64.deb |
| MD5sum | 079bba72355d8f217f5972d026347dbf |
| SHA1 | af066b7ce33762575e447aa28897f43f9d939648 |
| SHA256 | c92bc34ff2d23d6a56ecd5146aeef9bf3be4a1a09dd2d65e03069f9b813639ce |
| SHA512 | a667c8b435a8a1d34dff71218220d660f6adf4f5f2244f63ea41e246a3b8d9760874d6b07a4a9511dd28720d62d101c805fd39776006cb90673027675284abdc |
| Velikost | 41856 |
| Auto-Built-Package | |
| Domovská stránka | https://github.com/VitexSoftware/PHP-Pohoda-Connector |
| Provides | php-pohoda |
| Existing | |
| fileMtime | 2025-08-26 21:59:52 |
| created | 2024-11-28 12:48:40 |
| updated | 2025-08-26 19:59:52 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 310 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 306 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 309 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 308 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 308 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 307 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Adressbook.php | 1032 |
| ./usr/share/php/mServer/Bank.php | 2024 |
| ./usr/share/php/mServer/Client.php | 21909 |
| ./usr/share/php/mServer/Invoice.php | 4902 |
| ./usr/share/php/mServer/Response.php | 15831 |
| ./usr/share/php/mServer/UserList.php | 2037 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 844 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 1581 |
| ./usr/share/php/mServer/Bank.php | 6705 |
| ./usr/share/php/mServer/Client.php | 27126 |
| ./usr/share/php/mServer/HttpException.php | 522 |
| ./usr/share/php/mServer/Invoice.php | 5268 |
| ./usr/share/php/mServer/Response.php | 19222 |
| ./usr/share/php/mServer/UserList.php | 2042 |
| ./usr/share/php/mServer/composer.json | 770 |
| ./usr/share/php/mServer/smart.php | 558 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 343 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 930 |
| ./usr/share/php/mServer/Adressbook.php | 567 |
| ./usr/share/php/mServer/Bank.php | 2025 |
| ./usr/share/php/mServer/Client.php | 21555 |
| ./usr/share/php/mServer/HttpException.php | 496 |
| ./usr/share/php/mServer/Invoice.php | 4864 |
| ./usr/share/php/mServer/Response.php | 16065 |
| ./usr/share/php/mServer/UserList.php | 2016 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 845 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 1581 |
| ./usr/share/php/mServer/Bank.php | 6705 |
| ./usr/share/php/mServer/Client.php | 27126 |
| ./usr/share/php/mServer/HttpException.php | 522 |
| ./usr/share/php/mServer/Invoice.php | 5268 |
| ./usr/share/php/mServer/Response.php | 19222 |
| ./usr/share/php/mServer/UserList.php | 2042 |
| ./usr/share/php/mServer/composer.json | 770 |
| ./usr/share/php/mServer/smart.php | 558 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 329 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 930 |
| ./usr/share/php/mServer/Adressbook.php | 567 |
| ./usr/share/php/mServer/Bank.php | 2025 |
| ./usr/share/php/mServer/Client.php | 21578 |
| ./usr/share/php/mServer/HttpException.php | 496 |
| ./usr/share/php/mServer/Invoice.php | 4864 |
| ./usr/share/php/mServer/Response.php | 16065 |
| ./usr/share/php/mServer/UserList.php | 2016 |
| ./usr/share/php/mServer/composer.json | 769 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 844 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 1581 |
| ./usr/share/php/mServer/Bank.php | 6705 |
| ./usr/share/php/mServer/Client.php | 27126 |
| ./usr/share/php/mServer/HttpException.php | 522 |
| ./usr/share/php/mServer/Invoice.php | 5268 |
| ./usr/share/php/mServer/Response.php | 19222 |
| ./usr/share/php/mServer/UserList.php | 2042 |
| ./usr/share/php/mServer/composer.json | 770 |
| ./usr/share/php/mServer/smart.php | 558 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/ | |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/README.Debian | 294 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/changelog.gz | 842 |
| ./usr/share/doc/php-vitexsoftware-pohoda-connector/copyright | 346301 |
| ./usr/share/php/ | |
| ./usr/share/php/mServer/ | |
| ./usr/share/php/mServer/Addressbook.php | 1581 |
| ./usr/share/php/mServer/Bank.php | 6705 |
| ./usr/share/php/mServer/Client.php | 27126 |
| ./usr/share/php/mServer/HttpException.php | 522 |
| ./usr/share/php/mServer/Invoice.php | 5268 |
| ./usr/share/php/mServer/Response.php | 19222 |
| ./usr/share/php/mServer/UserList.php | 2042 |
| ./usr/share/php/mServer/composer.json | 770 |
| ./usr/share/php/mServer/smart.php | 558 |
client library for Stormware's mPohoda mServer
The PHP-Pohoda-Connector library provides a set of features to interact with the Pohoda accounting software. Below are some of the key features along with code examples:
Install using composer:
composer require vitexsoftware/pohoda-connector
Or clone https://github.com/VitexSoftware/PHP-Pohoda-Connector.git
Classess check at startup for this constants or environment variables:
Pohoda always produces XML encoded in windows-1250. This library will automatically convert all incoming XML to UTF-8 before processing. As a result, all parsed data and strings you receive from this library will be in UTF-8 encoding, regardless of the original XML encoding.
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$client = new \mServer\Client();
if (\Ease\Shared::cfg('APP_DEBUG')) {
$client->logBanner();
}
echo $client->isOnline() ? 'Online' : 'Offline';
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$addressBookRecord = [
'identity' => [
'address' => [
'company' => 'Vitex Software',
'name' => 'Vítězslav Dvořák',
'city' => 'Prague',
'street' => 'Long',
'zip' => '15800',
'ico' => '69438676',
'dic' => 'CZ7808072811',
],
],
'mobil' => '739 778 202',
'web' => 'https://www.vitexsoftware.cz',
];
$addresser = new Adressbook($addressBookRecord);
$addresser->addToPohoda();
if ($addresser->commit()) {
print_r($addresser->response->producedDetails);
}
This feature allows you to create a new invoice.
<?php
namespace mServer;
require_once __DIR__.'/../vendor/autoload.php';
$invoiceRecord = [
'invoiceType' => 'issuedInvoice',
'date' => date('Y-m-d'),
'accounting' => ['ids' => '3Fv'],
'text' => 'Faktura za zboží bez adresy',
'paymentType' => 'draft',
'note' => 'Import XML.',
'intNote' => 'Tento doklad byl vytvořen importem přes XML z PHP.',
'invoiceSummary' => [
'roundingDocument' => 'math2one',
'homeCurrency' => [
'priceNone' => 3018,
'priceLow' => 60000,
'priceHighSum' => 557,
],
],
];
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$invoicer = new Invoice($invoiceRecord);
$itemRecord = [
'text' => 'Židle Z220',
'quantity' => 1.0,
'unit' => 'ks',
'payVAT' => false,
'rateVAT' => 'high',
'homeCurrency' => [
'unitPrice' => 1968,
'price' => 1968,
'priceVAT' => 413.28,
'priceSum' => 2381.28,
],
'code' => 'Z220',
'stockItemIDS' => 'Z220',
];
$invoicer->addItem($itemRecord);
$invoicer->addToPohoda();
if ($invoicer->commit()) {
print_r($invoicer->response->producedDetails);
}
This feature allows you to read an addressbook record.
<?php
require_once '../vendor/autoload.php';
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD'], \dirname(__DIR__).'/.env');
$addresser = new \mServer\Addressbook();
print_r($addresser->getColumnsFromPohoda(['id', 'jmeno', 'email', 'web']));
See usage examples in tests directory
Some of Projects using pohoda-connector:
Many thanks to Riešenia, spol. s r.o. for its library https://github.com/riesenia/pohoda
See my other libraries: https://github.com/Spoje-NET/PohodaSQL , https://github.com/Spoje-NET/php-abraflexi
| Verze | Počet stažení/instalací | Poslední přístup |
|---|