creof/geo-parser
Creof GeoParser is a PHP library that parses geographic coordinate strings and formats like WKT, GeoJSON, KML, and GPX into geometry objects via geoPHP, making it easy to import, convert, and work with spatial data in Laravel and PHP applications.
creof/geo-parser is a narrow, single-responsibility string parser that converts human-entered coordinate notations (decimal degrees, degrees-decimal-minutes, degrees-minutes-seconds, and hemisphere/bearing variants) into coordinate value objects. It is designed to compose with sibling creof packages (geo-io for geometry primitives, doctrine2-spatial for ORM persistence), which gives it a clean boundary: it should sit in a translation layer, never in domain logic.
brick/geo, geocoder-php, or a bounded regex in-house) that covers our subset? Who owns the fork if upstream is dead?composer.json PHP constraints against the app's runtime before committing. If the project is on PHP 8.2+ / Laravel 10+, assume a fork or patch is required.CoordinateParser contract + adapter wrapping creof/geo-parser, bind it in a service provider, and route new code paths through it. Migrate legacy regex/explode logic format-by-format behind the contract.Coordinate validation rule and FormRequest macro. Test on the lowest and highest supported PHP versions in CI.How can I help you explore Laravel packages today?