geocoder-php/geoip2-provider
GeoIP2 provider for PHP Geocoder using MaxMind GeoLite2/GeoIP2 databases or the paid Precision web service. Geocode IP addresses via a GeoIP2 adapter to return location data (city/country) from MMDB files or API.
Adopt if:
Look elsewhere if:
geocoder-php/google-maps-provider).For Executives: "This package integrates MaxMind’s GeoIP2 database/API into our Laravel stack, enabling location-based features (e.g., regional targeting, fraud prevention) with minimal dev effort. Free tier (GeoLite2) covers basic needs; paid tier unlocks enterprise-grade accuracy. MIT license ensures no vendor lock-in."
For Engineering:
"Lightweight, PHP 8.1+ compatible, and part of the Geocoder library—reduces boilerplate for IP geocoding. Supports both local MMDB files (offline) and MaxMind’s API (scalable). Example: geocodeQuery('74.200.247.59')->first() returns structured location data. Zero dependents = low risk."
How can I help you explore Laravel packages today?