torann/geoip
GeoIP for Laravel resolves visitor location and currency from IP addresses via configurable services. Integrates with Laravel, supports multiple drivers/providers, and lets you publish config to choose and tune your lookup service.
Adopt when:
Look elsewhere if:
spatie/laravel-geocoder or a dedicated geospatial database (PostGIS).For Executives:
*"This Laravel package is a strategic lever for global expansion, enabling us to launch region-specific features in weeks instead of months—without hiring additional engineers. By adopting torann/geoip, we unlock:
For Engineering Leaders: *"A production-ready, Laravel-native solution that abstracts geolocation providers (MaxMind, ipdata.co, ipfinder.io) into a single, maintainable dependency. Key technical advantages:
public function handle(Request $request, Closure $next) {
$location = GeoIP::getLocation();
if ($location->countryCode === 'US') {
return redirect()->route('us.home');
}
return $next($request);
}
geoip.resolved) for decoupled extensions (e.g., analytics, logging, or custom business logic).
Use cases: Geotargeting, compliance checks, or fraud detection—all with minimal dev effort and no operational overhead."*For Product Managers: *"This package enables three high-impact features with zero additional engineering resources:
For Security/Compliance Teams:
*"By integrating torann/geoip, we can:
How can I help you explore Laravel packages today?