# stevebauman/location

Retrieve a visitor's location from their IP address.

Repository: https://github.com/stevebauman/location
Canonical: https://ross.abutalabs.com/products/location
Language: PHP
License: MIT
License Family: permissive
Topics: maxmind, php, location, laravel
Last push: 2026-08-06T19:33:00+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 63, longevity 100
- inputs: {"age_days": 4504, "days_push": 27, "days_rel": 167, "gap_med": 38.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1307, forks 201 (observed 2026-08-28T04:04:19.053161+00:00)

## What it is
A PHP/Laravel package that retrieves a visitor's geographic location from their IP address using various online and local geolocation services. It provides a simple facade API with support for multiple drivers and test faking.

## Use cases
- look up a visitor's country and city from their IP address
- geolocate users in a Laravel app for content localization
- resolve the location of a specific IP address in PHP
- detect user region for compliance or pricing
- fake IP geolocation responses in tests

## When to choose
- you have a Laravel or PHP 8.1+ application needing IP-based geolocation
- you want a driver-based abstraction over multiple geolocation services (online and local like MaxMind)
- you need easy test faking of geolocation results

## When to avoid
- you need precise GPS-level location rather than IP-based approximation
- you're not using PHP or Laravel
- you need client-side browser geolocation

## Facets
- artifact type: library
- maturity: active
- function: http-server, developer-tools
- domain: web-development, backend
- platform: php
- tags: ip-geolocation, laravel-package, maxmind, geoip, maps, laravel

## Member repositories
- stevebauman/location (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.053161+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:50:17.120681+00:00, confidence not recorded.
  - readme: https://github.com/stevebauman/location (fetched 2026-08-28T04:04:19.053161+00:00, sha c59573ca0fb8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
