Registry / utility / phayes-geophp

phayes-geophp

JSON →
library1.2phppackagistunverified

GeoPHP is a open-source native PHP library for doing geometry operations. It is written entirely in PHP and can therefore run on shared hosts. It can read and write a wide variety of formats: WKT (including EWKT), WKB (including EWKB), GeoJSON, KML, GPX, GeoRSS). It works with all Simple-Feature geometries (Point, LineString, Polygon, GeometryCollection etc.) and can be used to get centroids, bounding-boxes, area, and a wide variety of other useful information.

composer require phayes/geophp
INSTALL
IMPORT
SIG · PHAYES-GEOPHP
P
phayes-geophp
utilityphpv1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

geoPHP
use geoPHP\geoPHP;

Load a WKT point and compute its area

use geoPHP\geoPHP; $point = geoPHP::load('POINT(1 2)', 'wkt'); echo $point->area();
Debug
Known issues
gotchaGeoPHP is not actively maintained; consider using a more modern library like phpgeo.
fix
Evaluate alternatives such as phpgeo or geotools for ongoing support.
affects: >=1.0
Upgrade
Version history
1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
phayes-geophp — pip install phayes-geophp · libregistry