Changelog
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
[2.12.6] - 2026.10.21
Fixed
- CDATA sections in the response XML were dropped during parsing, so the error code and error message (hibakod, hibauzenet) were empty in the thrown SzamlaAgentException; responses are now parsed with LIBXML_NOCDATA
- src/szamlaagent/Response/ReceiptResponse.php
- src/szamlaagent/Response/SzamlaAgentResponse.php
- src/szamlaagent/SzamlaAgentUtil.php
[2.12.5] - 2026.10.05
Changed
- getPriceGapVatBase and setPriceGapVatBase are deprecated and will be deleted after 2027.02.15
- src/szamlaagent/InvoiceItem.php
- isProfitVat and setProfitVat are deprecated and will be deleted after 2027.02.15
- src/szamlaagent/InvoiceHeader.php
[2.12.4] - 2026.08.12
Added
- added option: simple items (egyszerűsített számlakép) in the invoice header, default value is false
- src/szamlaagent/Header/InvoiceHeader.php
- src/szamlaagent/SzamlaAgentException.php
- examples/document/invoice/create_invoice_with_custom_data.php
$invoice->getHeader()->setSimpleItems(true);
- it cannot be used with delivery note and corrective invoice, in this case a SzamlaAgentException is thrown
Changed
- the CURL connection is closed in a finally block, so it is closed on error too
- src/szamlaagent/SzamlaAgentRequest.php
- curl_close is called only under PHP 8.0 (since PHP 8.0 it has no effect)
- src/szamlaagent/SzamlaAgentRequest.php
[2.12.3] - 2026.05.20
Fixed
- external id bugfix
- src/szamlaagent/SzamlaAgent.php
- examples autoloader fix
- examples/autoload.php
[2.12.2] - 2026.04.08
Added
- added function: get receipt information and pdf by order number
- src/szamlaagent/Document/Document.php
- src/szamlaagent/Document/Proforma.php
- src/szamlaagent/Document/Invoice/Invoice.php
- src/szamlaagent/Document/Header/ReceiptHeader.php
- src/szamlaagent/SzamlaAgent.php
$agent->getReceipt("ORDER NUMBER", Document::FROM_ORDER_NUMBER);
Changed
- updated checkValidXml method
- src/szamlaagent/SzamlaAgentUtil.php
[2.12.1] - 2026.03.25
Added
- added function: create receipt with order number
- src/szamlaagent/Header/DocumentHeader.php
- src/szamlaagent/Header/InvoiceHeader.php
- src/szamlaagent/Header/ReceiptHeader.php
$receipt->getHeader()->setOrderNumber("ORDER NUMBER");
Fixed
- PHP api version and release numbering
[2.11.00] - 2026.02.10
Added
- added options:
- src/szamlaagent/Language.php.php
- added 4 language constans - BG, NL, RU, SI
- src/szamlaagent/Language.php.php
- set up composer
- now you can install the package using composer:
composer require kboss/szamlaagent_v2
- now you can install the package using composer:
Changed
- changed directory names (because of PSR4 autolader)
- In the szamlaagent directory, the first letter of every folder name has been capitalized
Removed
- check PHP version before saving XML file
[2.10.23] - 2025.11.26
Added
- added function: singleton mode can be disabled
- src/szamlaagent/SzamlaAgentAPI.php
- SzamlaAgentAPI::create last parameter, default is true (singleton mode is enabled)
- when disabled, the SzamlaAgentAPI create method always returns a new instance
- when Singleton mode is disabled, the names of XML files change; hash of the SzamlaAgent instance is added to the file name
SzamlaAgentAPI::create("AGENT KEY", true, Log::LOG_LEVEL_DEBUG, SzamlaAgentResponse::RESULT_AS_TEXT, "PHP API teszt", false); - src/szamlaagent/SzamlaAgentAPI.php
- added function: invoice XML data download by external ID
- src/szamlaagent/SzamlaAgentSetting.php
- src/szamlaagent/SzamlaAgent.php
$agent->getInvoiceData("EXTERNAL_ID", Invoice::FROM_INVOICE_EXTERNAL_ID);
[2.10.22] - 2025.11.13
Added
- added function: dot check
- src/szamlaagent/SzamlaAgentUtil.php
- dotCheck - replace comma with dots
- src/szamlaagent/SzamlaAgentUtil.php
- the VAT rate can also be entered with a comma
- src/szamlaagent/item/Item.php
- remove constans VAT_TEHK
- src/szamlaagent/item/Item.php
[2.10.21] - 2025.03.14
Added
- added function: set curl connection timeout (CURLOPT_CONNECTTIMEOUT)
- src/szamlaagent/SzamlaAgent.php
- getRequestConnectTimeout - get curl connection timeout
- setRequestConnectTimeout - set curl connection timeout
- src/szamlaagent/SzamlaAgent.php
$agent = SzamlaAgentAPI::create('agentApiKey');
...
$agent->setRequestConnectTimeout(10);
[2.10.20] - 2024.11.20
Fixed
- SzamlaAgentResponse getPdfFileName bugfix for preview mode
- src/szamlaagent/SzamlaAgentResponse.php