Give it the executable path and configuration name and it checks mServer before the first tool call, launching it if needed and shutting it down on exit — but leaving it running if it was already up when the server arrived. Printing needs a report id, which differs per installation; the troubleshooting table also names the usual failure, a 0-byte PDF when mServer can't write to the path you gave.
A PHP server that talks to the Czech accounting package Pohoda through its mServer XML API: reading documents, stock and the address book, creating invoices, orders, stock cards and contacts, and printing or exporting any record.
- `list_documents` across agendas — `invoice`, `order`, `voucher`, `bank`, `contract`, `intDoc`, `offer`, `enquiry`, `prijemka`, `vydejka`, `prodejka`, `prevodka`, `vyroba`, `accountancy` — filtered by id, date range, company, ICO, number or last change
- `list_stock` filtered by code, name, EAN, storage path or warehouse, and `list_contacts` for the address book
- `create_invoice` with the partner inline or linked from the address book, variable symbol, due date, foreign currency with a rate, and line items tied to stock cards
- `create_address`, `create_stock` and `create_order` for the other record types
- `print` — to a printer, to a PDF on the server, or returned as base64 in the response
- `status` to check mServer is answering, and with `companyDetail` the active company, database and accounting year
- `raw_xml` for anything the dedicated tools don't cover, plus resources listing the allowed agendas, VAT rates and payment types
PHP 8.1+ with ext-curl, ext-dom and ext-simplexml, and a Pohoda installation with mServer enabled on schema version 2. Configure `POHODA_URL` (default `http://localhost:444`), `POHODA_ICO`, `POHODA_USERNAME` and `POHODA_PASSWORD`. Setting `POHODA_EXE_PATH` and `POHODA_CONFIG_NAME` additionally lets the server start mServer itself — Windows only, since mServer is part of Pohoda.
Build from source — clone the repository and build it, then point your client at the binary
