PHPackages                             vitexsoftware/pohoda-connector - 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. vitexsoftware/pohoda-connector

ActiveLibrary[API Development](/categories/api)

vitexsoftware/pohoda-connector
==============================

Stormware's Pohoda mServer client.

0.11.0(1mo ago)164.5k↓30.6%3[2 issues](https://github.com/VitexSoftware/PHP-Pohoda-Connector/issues)[4 PRs](https://github.com/VitexSoftware/PHP-Pohoda-Connector/pulls)MITPHPCI passing

Since Nov 15Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/VitexSoftware/PHP-Pohoda-Connector)[ Packagist](https://packagist.org/packages/vitexsoftware/pohoda-connector)[ Patreon](https://www.patreon.com/VitexSoftware)[ RSS](/packages/vitexsoftware-pohoda-connector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (24)Used By (0)

PHPmServer
==========

[](#phpmserver)

- [PHPmServer](#phpmserver)
    - [Installation](#installation)
    - [Configuration](#configuration)
    - [Note on Encoding](#note-on-encoding)
    - [Usage](#usage)

client library for Stormware's [mPohoda mServer](https://www.stormware.cz/pohoda/xml/mserver/)

[![Project Logo](phpmserver.svg?raw=true)](phpmserver.svg?raw=true)

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:

- Check connection
- Create/Update/Delete records for AddressBook, Invoice, Bank, etc.
- Broad support for all Pohoda response types (70+ agendas supported)

[![PHP from Packagist](https://camo.githubusercontent.com/d8a5a9c720464b097b93c65e8f27e8584412fc595deea6a9fe52cbe978bffe10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)](https://camo.githubusercontent.com/d8a5a9c720464b097b93c65e8f27e8584412fc595deea6a9fe52cbe978bffe10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)[![Packagist Version](https://camo.githubusercontent.com/2b127eec38555bd85a0e16dffc900172bfa20a462b6ec6d85414631d8f83bf7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)](https://camo.githubusercontent.com/2b127eec38555bd85a0e16dffc900172bfa20a462b6ec6d85414631d8f83bf7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)[![Packagist Downloads](https://camo.githubusercontent.com/96cb5012e4b6e2343dc0428a0918c131b76307166dbcff566ccd52784575df74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)](https://camo.githubusercontent.com/96cb5012e4b6e2343dc0428a0918c131b76307166dbcff566ccd52784575df74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669746578736f6674776172652f706f686f64612d636f6e6e6563746f72)[![GitHub](https://camo.githubusercontent.com/0b30aa82c37c936b2916cf4ca25a2c8ae8062e2b33e73d62ac80706c4abbe8a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5669746578536f6674776172652f5048502d506f686f64612d436f6e6e6563746f72)](https://camo.githubusercontent.com/0b30aa82c37c936b2916cf4ca25a2c8ae8062e2b33e73d62ac80706c4abbe8a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5669746578536f6674776172652f5048502d506f686f64612d436f6e6e6563746f72)

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

[](#installation)

Install using composer:

```
composer require vitexsoftware/pohoda-connector
```

Or clone

Configuration
-------------

[](#configuration)

Classess check at startup for this constants or environment variables:

- **POHODA\_ICO** - company indentificator
- **POHODA\_URL** - mServer endpoint
- **POHODA\_USERNAME** - Pohoda user's login
- **POHODA\_PASSWORD** - Pohoda user's password
- **POHODA\_TIMEOUT** - Curl timeout
- **POHODA\_COMPRESS** - compress is disabled by default
- **POHODA\_DEBUG** - debug mode is disabled by default

Note on Encoding
----------------

[](#note-on-encoding)

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.

---

Usage
-----

[](#usage)

1. Check Connection This feature allows you to check if the connection to the Pohoda server is successful.

```
