
Postgis extensions for laravel. Aims to make it easy to work with geometries from laravel models.
The Laravel Wrapper for PostgreSQL's Geo-Extension Postgis is a powerful tool aimed at developers who need to handle geospatial data in their applications. With the growing need for spatial capabilities in web applications, this wrapper simplifies the integration of PostGIS functionalities into Laravel, allowing for seamless interaction with geometry classes instead of arrays. Although this package is deprecated and has moved to a new owner, it continues to serve as an essential resource for those working with Laravel versions 6 through 9 and PHP 7.
What stands out about this library is its commitment to ease of use and flexibility in utilizing geospatial features. With a focus on enhancing your Laravel experience, the package provides numerous helpers for migrations and a structured method for incorporating geospatial data models into your application.
Geometry Class Integration: Work with geometry classes directly instead of handling raw arrays, making the code cleaner and more maintainable.
Migration Helpers: Utilize handy migration helpers to easily enable or disable PostGIS in your database, improving workflow and reducing errors.
PostGIS Trait: All models that need geospatial capabilities must use the PostGIS Trait, allowing for customized geometry definitions through simple configurations.
Custom Geometry Types: Define custom geometry types and SRIDs for your models, providing flexibility for specific geospatial requirements.
Multiple Geometry Classes: Access a variety of geometry classes including Point, MultiPoint, LineString, and Polygon, catering to diverse spatial data needs.
Configurable Coordinate Precision: Customize the precision of stored and displayed coordinates, enhancing accuracy in your geospatial operations.
Support for Laravel's Package Discovery: For Laravel versions 5.5 and above, this package supports automatic package discovery, streamlining the installation process.
With these robust features, the Laravel Wrapper for PostgreSQL's Geo-Extension Postgis offers users an efficient way to integrate and manage geospatial data within their applications.
