Skip to content

Releases: mbolli/php-geobuf

v0.3.0 (2026-03-25)

26 Mar 06:44

Choose a tag to compare

Fixed

  • Decoder: removed duplicate mergeFromString call that doubled all repeated fields (keys, features, coords) and lacked error handling.
  • Decoder: corrected array_slice length argument in decodeMultiLine — was passing an end index instead of a count, breaking all multi-ring geometries beyond the first ring.
  • Decoder: decodeMultiPolygon was slicing $coords instead of $lengths to get per-ring point counts, corrupting any MultiPolygon with more than one polygon.
  • Encoder: encodeToFile did not forward $precision and $dim to encode(), always encoding with the defaults.
  • Encoder: $keys deduplication never matched (compared strings against true values with strict mode); keys were never deduplicated and $keys was never reset between calls.
  • Tests: is_dir() was called with a bare filename instead of the full path.

Changed

  • CI: updated actions/checkout to v6, actions/cache to v5, added PHP 8.5 to test matrix.

v0.2.0 (2024-11-18)

18 Nov 07:17

Choose a tag to compare

Maintenance release, no difference in functionality.

Changes:

  • Discontinued PHP 8.0 and 8.1 support
  • Changed CI to run test suite on PHP 8.2, 8.3 and 8.4
  • Dependency updates
    • Pest v1 to v3
    • PhpStan v1 to v2
    • Protobuf v3 to v4
  • Code style fixes

v0.1.4 (2022-12-19)

19 Dec 09:04

Choose a tag to compare

Maintenance release, functionality is the same as in the other versions.

Changes:

  • Discontinued PHP 7.4 support (official security support ended November 28th)
  • Fixed some errors based on phpstan static analyzer and added it to the GitHub CI
  • Code style fixes as reported by PHP-CS-Fixer
  • Decoder and Encoder classes are now final
  • Changed the test assertion from toEqualCanonicalizing() to toEqual() -> test suite is now returning 0 errors