PHP-Pohoda-Connector
0.9.1Notable Changes and Improvements
-
XML Parsing and Error Handling
Robust error handling for XML parsing failures. Now, detailed error messages and runtime exceptions are thrown if XML parsing fails, greatly improving reliability and debuggability. Automatic XML encoding conversion: Incoming XML in windows-1250 is automatically converted to UTF-8 before processing. All parsed data and strings from the library will be in UTF-8 encoding (see README.md update).
-
Library Functionality
Enhanced record autoloading: The type of initial value is now checked. If an integer or string is provided, the record loads by ID or IDS. If an array and autoload mode are enabled, load as record; otherwise, just assign data. New function: recordExists() added in v0.8.0. Improved error propagation: Logic now validates key search and replacement options before applying them to attributes and tag names in XML.
-
Developer Experience
Code quality & tooling updates: Updated dev dependencies (php-cs-fixer, composer-normalize, etc.) in composer.json. @no-named-arguments PHPDoc annotation added to major classes for clarity. README.md: New note on encoding and behavior added.
-
Debian Packaging
Changelog: Updated for 0.9.1 release, noting XML parsing improvements. debian/rules: Minor fixes for installation and file pathing.
-
Minor/Other
Test files: Added comprehensive XML response samples for invoices and bank listings. Various code improvements in src/mServer/Client.php, Response.php, Bank.php, Addressbook.php, and others to support new features and better error handling.
What's Changed
- Update friendsofphp/php-cs-fixer requirement from 3.64.0 to 3.82.2 by @dependabot[bot] in https://github.com/VitexSoftware/PHP-Pohoda-Connector/pull/3
New Contributors
- @dependabot[bot] made their first contribution in https://github.com/VitexSoftware/PHP-Pohoda-Connector/pull/3
Full Changelog: https://github.com/VitexSoftware/PHP-Pohoda-Connector/compare/0.8.0...0.9.1