Skip to content

Releases: VitexSoftware/PHP-Pohoda-Connector

Release 0.11.0

Choose a tag to compare

@Vitexus Vitexus released this 21 Mar 12:11

Release 0.11.0

This release significantly expands the library's ability to parse Pohoda mServer responses, now supporting over 70 different response and list agendas.

Key Changes

  • Expanded Coverage: Added support for 70+ Pohoda response and list types (e.g., invoiceResponse, listStock, prijemkaResponse, etc.).
  • Debian Packaging Modernized:
    • Switched to pkg-php-tools for dependency management.
    • Implemented automatic autoloader generation and registration.
  • Improved Documentation: Added docs/ResponseTypes.md as a full reference of supported types.
  • Enhanced Testing: Added data-driven tests to verify response routing.

Supported Agendas

  • Invoices, Orders, Bank, Prodejky, Prijemky, Vydejky, Vyroba, Storage, and many more.

0.10.0

Choose a tag to compare

@Vitexus Vitexus released this 25 Jul 15:14

Full Changelog: 0.9.1...0.10.0

0.9.1

Choose a tag to compare

@Vitexus Vitexus released this 16 Jul 17:34

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

  • Update friendsofphp/php-cs-fixer requirement from 3.64.0 to 3.82.2 by @dependabot[bot] in #3

New Contributors

Full Changelog: 0.8.0...0.9.1

recordExists() ?

Choose a tag to compare

@Vitexus Vitexus released this 17 May 22:55

Check for presence of record in any agenda.

Full Changelog: 0.7.0...0.8.0

sqlQuery support

Choose a tag to compare

@Vitexus Vitexus released this 16 May 16:59

Full Changelog: 0.6.1...0.7.0

lose weight

Choose a tag to compare

@Vitexus Vitexus released this 22 Apr 09:17

Changelog for Release v0.6.1

Enhancements

  • Set Default Curl Timeout: Default cURL timeout is now set to 30 seconds for improved stability. (Jan 24, 2025)
  • Improved Message Readability: Enhanced readability of messages produced by Pohoda. (Jan 28, 2025)

Updates

  • Examples Updated: Refreshed examples to align with the latest library changes. (Apr 5, 2025)

Code Quality Improvements

  • Strict Types Update: Updated codebase to enforce strict types for better type safety. (Jan 24, 2025)
  • Removed Broken PHPDoc: Cleaned up invalid PHPDoc annotations. (Jan 24, 2025)
  • Dropped Support for Old Platforms: Removed builds for outdated platforms. (Jan 24, 2025)
  • Serializing Attempt Removal: Removed unnecessary serializing attempts for cleaner code. (Apr 18, 2025)

This release includes significant improvements in stability, code quality, and compatibility with updated XSD files.

The old (un)serialization attempt was removed to its dedicated project https://github.com/VitexSoftware/pohodaser

Full Changelog: 0.5.0...0.6.0

Some is working now

Choose a tag to compare

@Vitexus Vitexus released this 02 Dec 17:05

The Address & Invoice & Bank CRUD

Still young

Choose a tag to compare

@Vitexus Vitexus released this 18 May 18:25

Code reformat
#2 fixed by @haltuf

Full Changelog: 0.3...0.4

At your own risc!

Choose a tag to compare

@Vitexus Vitexus released this 01 Jan 22:04

❗ ❗ ❗ still not stable ❗ ❗ ❗

  • Improved response parsing added
  • methods renamed to addToPohoda and updateInPohoda
  • Some Unit tests added

Initial dependency setup

Pre-release

Choose a tag to compare

@Vitexus Vitexus released this 07 Dec 14:48
0.2

Dependency update 2