spinen/laravel-geometry
A Laravel package for working with geometric data in Eloquent models. It provides casts and helpers for spatial types like points, lines, and polygons, making it easier to store, retrieve, and query geometry values in your database.
Consider it when:
Look elsewhere when:
Executive summary: spinen/laravel-geometry is a small Laravel wrapper over geoPHP that can accelerate location-based features in PHP applications. It is best positioned as a prototype or low-risk enabling dependency, not as the foundation for a strategic GIS platform. Adoption should be conditional on a short technical spike, compatibility check with the current Laravel/PHP version, and a documented fallback plan given the package’s low star count and 2020 last release.
For engineering: It may reduce glue code for handling geometry types in Laravel, but we should verify maintained compatibility, test coverage, and behavior under our expected spatial formats. If we adopt it, isolate it behind an internal interface so we can swap to database-native spatial features or a GIS service later without rewriting product logic.
For product: This supports fast exploration of location features such as store locators or service areas, but it should not drive roadmap commitments that require enterprise-grade geospatial performance or support. Use it to validate demand, then reassess architecture if the feature becomes core to the product.
How can I help you explore Laravel packages today?