A PHP library implementing the GeoJSON format specification for encoding geographic data structures.
jmikola/geojson is a PHP library that implements the GeoJSON format specification for working with geographic data. It provides classes representing GeoJSON objects like points, lines, polygons, and feature collections, allowing PHP applications to serialize, deserialize, and validate geographic data structures according to the standard.
PHP developers building applications that need to process, store, or exchange geographic data, particularly those working with mapping, GIS systems, or location-based services.
Developers choose this library because it offers a complete, specification-compliant implementation of GeoJSON in PHP with a clean object-oriented API, eliminating the need to manually parse or generate GeoJSON and ensuring interoperability with other geospatial systems.
GeoJSON implementation for PHP
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements all GeoJSON geometry types and feature collections as per the official spec, ensuring data integrity and interoperability with other systems.
Provides PHP classes for each GeoJSON object, offering type safety and intuitive manipulation, as highlighted in the library's philosophy.
Converts between PHP objects and JSON strings effortlessly, simplifying data exchange for APIs or storage, with usage documented in USAGE.md.
Validates GeoJSON structures against the specification, catching errors early during object creation or deserialization.
Lacks geometric operations such as distance or area computation, requiring integration with additional libraries for spatial analysis.
No out-of-the-box adapters for databases or frameworks; developers must handle all integration logic themselves, increasing setup effort.
Loads entire GeoJSON objects into memory during processing, which can be inefficient for very large datasets without custom streaming solutions.