Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Geoip2 Provider Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Geolocation Features: Enables IP-to-location mapping for user personalization, fraud detection, or regional content delivery.
  • Data-Driven Roadmap: Supports initiatives requiring granular geographic insights (e.g., analytics dashboards, A/B testing by region).
  • Build vs. Buy: Avoids reinventing geocoding infrastructure; leverages MaxMind’s trusted datasets (free/paid tiers).
  • Use Cases:
    • User segmentation (e.g., "Show EU users GDPR-compliant content").
    • Security (e.g., "Block traffic from high-risk countries").
    • Localization (e.g., "Redirect to region-specific landing pages").

When to Consider This Package

Adopt if:

  • Your app needs IP-based geolocation with PHP/Laravel.
  • You require low-latency lookups (local database) or high-precision data (MaxMind API).
  • Your team prioritizes maintained, MIT-licensed open-source tools (backed by the Geocoder ecosystem).

Look elsewhere if:

  • You need reverse geocoding (address → coordinates; use geocoder-php/google-maps-provider).
  • Your budget prohibits MaxMind’s paid API (free GeoLite2 offers limited accuracy).
  • You require real-time GPS tracking (consider dedicated geolocation services like Google Maps API).

How to Pitch It (Stakeholders)

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."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours