bkhim/laravel-geolocation

Laravel geolocation with built-in fraud prevention, risk scoring, MFA triggers, IP blocking, threat intelligence, and security auditing. 6 providers (IP2Location.io, MaxMind, IpInfo, IpStack, IpApi, IpGeolocation), proxy/VPN/Tor detection, login tracking, timezone/currency personalization for Larave

Maintainers

Package info

github.com/bkhim/laravel-geolocation

pkg:composer/bkhim/laravel-geolocation

Statistics

Installs: 734

Dependents: 0

Suggesters: 0

Stars: 1

4.4.0 2026-04-12 09:34 UTC

This package is auto-updated.

Last update: 2026-04-12 09:35:46 UTC


README

IP geolocation + fraud prevention for Laravel.
Detect proxy/VPN/Tor, trigger MFA on suspicious logins, personalize user experience.

Latest Version Total Downloads Tests License

โœจ One Line of Code

$details = Geolocation::lookup();
echo $details->getCity(); // "Mountain View"

๐Ÿ›ก๏ธ Security First

if ($details->isProxy() || $details->isTor()) {
    return redirect()->route('mfa');
}

๐ŸŒ 6 Providers. One API.

Provider Free Tier Fraud Score Proxy Detection
ipapi.co 30k/mo โŒ โœ…
IP2Location.io 50k/mo โœ… โœ…
IpInfo Unlimited* โŒ โŒ
MaxMind Unlimited โŒ โŒ
IPStack 100/mo โŒ โŒ
IPGeolocation 1k/mo โœ… โœ…

*IpInfo Lite: country only

โ†’ Compare all providers

โšก Quick Install

composer require bkhim/laravel-geolocation
php artisan vendor:publish --provider="Bkhim\Geolocation\GeolocationServiceProvider"

Documentation

Use Cases

  • ๐Ÿ” Login Security โ€“ MFA triggers on suspicious locations
  • ๐Ÿ’ฐ E-commerce โ€“ Local currency, geo-blocking
  • ๐Ÿ“Š Analytics โ€“ Visitor location tracking
  • ๐Ÿ›ก๏ธ Fraud Prevention โ€“ Proxy/VPN/Tor detection

Built for Laravel 10โ€“13 | PHP 8.2+ | MIT License