PHP-Pohoda-Connector 0.9.1 released

CS
PHP-Pohoda-Connector

PHP-Pohoda-Connector

0.9.1

Notable Changes and Improvements

  1. 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).

  2. 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.

  3. 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.

  4. Debian Packaging

    Changelog: Updated for 0.9.1 release, noting XML parsing improvements. debian/rules: Minor fixes for installation and file pathing.

  5. 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

New Contributors

Full Changelog: https://github.com/VitexSoftware/PHP-Pohoda-Connector/compare/0.8.0...0.9.1

Back to articles