# geocoder-php/Geocoder

The most featured Geocoder library written in PHP.

Repository: https://github.com/geocoder-php/Geocoder
Canonical: https://ross.abutalabs.com/products/geocoder-php-geocoder
Homepage: https://geocoder-php.org
Language: PHP
License: MIT
License Family: permissive
Topics: geocoder
Last push: 2026-07-01T21:32:32+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 100
- inputs: {"age_days": 5413, "days_push": 63, "days_rel": 609, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3972, forks 524 (observed 2026-08-28T04:08:30.863534+00:00)

## What it is
Geocoder is a PHP library providing a powerful abstraction layer for geocoding and reverse geocoding, with 30+ swappable providers like Google Maps, Bing Maps, and ArcGIS. It relies on PSR-18 HTTP clients and offers framework integrations for Laravel and Symfony, plus caching and rate-limiting support.

## Use cases
- convert addresses to coordinates in PHP
- reverse geocode lat/lng to street addresses
- geolocate users by IP address
- swap between geocoding providers like Google Maps and Bing
- cache geocoding API responses
- add geocoding to a Laravel or Symfony app

## When to choose
- you need geocoding in a PHP project with a consistent interface across many providers
- you want to switch geocoding services without rewriting code
- you need caching, rate limiting, or provider chaining for geocoding requests

## When to avoid
- you work outside PHP
- you need offline/self-contained geocoding without external API services
- you need a full mapping or routing solution rather than geocoding

## Facets
- artifact type: library
- maturity: stable
- function: geospatial, http-client, caching, sdk
- domain: web-development, developer-tools
- platform: php, cross-platform
- tags: geocoding, reverse-geocoding, ip-geolocation, address-lookup, psr-18, multi-provider, geospatial, maps

## Member repositories
- geocoder-php/Geocoder (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.863534+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-29T18:24:21.485448+00:00, confidence not recorded.
  - readme: https://github.com/geocoder-php/Geocoder (fetched 2026-08-28T04:08:30.863534+00:00, sha ad984ac9693e)
  - homepage: https://geocoder-php.org (fetched 2026-08-29T09:18:03.978854+00:00, sha fe1872cdfc94)
  - site_page: https://geocoder-php.org/docs (fetched 2026-08-29T09:18:04.028146+00:00, sha 244a58804786)
  - site_page: https://geocoder-php.org/docs/providers/AlgoliaPlaces (fetched 2026-08-29T09:18:04.052867+00:00, sha 2c623e0e6a63)
  - site_page: https://geocoder-php.org/docs/providers/ArcGISOnline (fetched 2026-08-29T09:18:04.066089+00:00, sha 19a8c4b90e94)
  - site_page: https://geocoder-php.org/docs/providers/AzureMaps (fetched 2026-08-29T09:18:04.068244+00:00, sha f30d5615dc76)
  - site_page: https://geocoder-php.org/docs/providers/BingMaps (fetched 2026-08-29T09:18:04.069944+00:00, sha 780c30261428)
  - site_page: https://geocoder-php.org/docs/providers/Cache (fetched 2026-08-29T09:18:04.071414+00:00, sha 3e7bf6385750)
  - site_page: https://geocoder-php.org/docs/providers/Chain (fetched 2026-08-29T09:18:04.073030+00:00, sha cea284ebd656)
  - site_page: https://geocoder-php.org/docs/providers/FreeGeoIp (fetched 2026-08-29T09:18:04.074658+00:00, sha 030762a3d85e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
