php8 support
behalp opened this issue · comments
Petr Behal commented
Hello,
do you plan update of this package for php8 support, I get this error when I try update with composer:
- Root composer.json requires chillerlan/php-geojson-helpers ^1.0 -> satisfiable by chillerlan/php-geojson-helpers[1.0.0].
- chillerlan/php-geojson-helpers 1.0.0 requires php ^7.2 -> your php version (8.1.12) does not satisfy that requirement.
smiley commented
Oh, i almost forgot that this library exists... 😄 Sure i can update it to support PHP 8.
Petr Behal commented
great, thank you I dont want switch to some other package becase of this
smiley commented
There you go: https://github.com/chillerlan/php-geojson-helpers/releases/tag/2.0.0
The 2.0 API is basically identical to 1.0, with the addition of the polyline simplifyer. I'm thinking about a 3.0 release that adds the several feature types as individual classes as well as a fromJSON
method to allow decoding existing GeoJSON files.