# thephpleague/geotools

Geo-related tools PHP 7.3+ library built atop Geocoder and React libraries

Repository: https://github.com/thephpleague/geotools
Canonical: https://ross.abutalabs.com/products/thephpleague-geotools
Language: PHP
License: MIT
License Family: permissive
Topics: php, geolocation, geotools, geo, geometry
Last push: 2026-03-22T22:10:33+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 43, longevity 100
- inputs: {"age_days": 4956, "days_push": 164, "days_rel": 164, "gap_med": 283, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1406, forks 128 (observed 2026-08-28T04:04:38.241199+00:00)

## What it is
A PHP 7.3+ geo-related library built atop Geocoder and React, providing batch geocoding, coordinate conversion, distance/bearing computation, geohash encoding, and polygon point-in-polygon checks. It also ships a CLI for distance, point, geohash, and conversion operations.

## Use cases
- batch geocode addresses in parallel with PHP
- compute distance between two GPS coordinates
- convert decimal degrees to DMS or UTM
- encode and decode geohash strings
- check if a point is inside a polygon
- find the midpoint between two coordinates
- cache geocoder results with PSR-6

## When to choose
- you need geospatial math (distance, bearing, geohash, UTM) in a PHP project
- you want batch or cached geocoding across multiple providers
- you need a CLI for quick coordinate conversions and distance calculations

## When to avoid
- you need a full GIS engine like PostGIS or spatial SQL queries
- your project is not PHP-based
- you need map rendering or tile serving rather than coordinate computation

## Facets
- artifact type: library
- maturity: active
- function: geospatial, cli, caching, http-client
- domain: developer-tools
- platform: php, cli
- tags: geocoding, coordinates, distance, geohash, utm, polygon, reactphp, maps, geospatial, command-line

## Member repositories
- thephpleague/geotools (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.241199+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:44.351080+00:00, confidence not recorded.
  - readme: https://github.com/thephpleague/geotools (fetched 2026-08-28T04:04:38.241199+00:00, sha f266516cb24c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
