creof/wkt-parser
A PHP library for parsing Well-Known Text (WKT) geometry strings into usable geometry objects. Supports points, linestrings, polygons, and more, making it easy to work with spatial data in Laravel and other PHP apps without heavy GIS dependencies.
ST_GeomFromText) and decided PHP-side parsing is still necessary.Look elsewhere when:
Executives: This is a small MIT-licensed PHP parser for WKT/EWKT geometry strings. It could accelerate a narrow geospatial import or validation feature at low license cost, but it was last released in 2016 with limited adoption, so it carries maintenance and compatibility risk. Recommend using it only behind an internal interface for a time-boxed pilot, with a clear fallback to a maintained library or database-native spatial parsing if the feature becomes strategic.
Engineering: It parses WKT/EWKT text; it is not a geometry engine. Expect to own compatibility, tests, and possibly a fork. Isolate it behind an adapter, validate inputs carefully, and prefer database spatial functions or a maintained geometry library for production workloads.
How can I help you explore Laravel packages today?