New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

worksome/laravel-ip-geolocation

A driver-based package to handle IP geolocation for Laravel
330,801
Install
composer require worksome/laravel-ip-geolocation
Latest Version:v0.2.4
PHP:^8.4
Laravel:12 · 13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Oct 28, 2026
Links: GitHub  ·  Packagist
Maintainer: owenvoke

Laravel IP Geolocation

Latest Version on Packagist GitHub Tests Action Status GitHub Static Analysis Action Status Total Downloads

A driver-based package to handle IP geolocation for Laravel

Installation

You can install the package via composer:

composer require worksome/laravel-ip-geolocation

You can publish the config file with:

php artisan vendor:publish --tag="ip-geolocation-config"

Usage

use Worksome\IpGeolocation\Facades\IpGeolocation;

/** @var \Worksome\IpGeolocation\DataValues\Location $location */
$location = IpGeolocation::location('2606:4700:4700::1111');

echo $location->country;
echo $location->city;
echo $location->zipcode;

The about command

This package adds information to the artisan about command. This information can be disabled by setting the ip-geolocation.features.about_command configuration to false.

Testing

composer test

Changelog

Please see GitHub Releases for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

worksome/request-factories

Test Form Requests in Laravel without all of the boilerplate.

2,432,361 621
worksome/envy

Automatically keep your .env files in sync.

2,118,640 688
worksome/exchange

Check Exchange Rates for any currency in Laravel.

708,293 126
worksome/verify-by-phone

Verify your users by call or SMS

680,454 147
worksome/feature-flags

A package to manage feature flags in your application

583,240 11

Version History

Version Released PHP Laravel License
v0.2.4 ^8.4 ^12.0 || ^13.0 MIT
v0.2.3 ^8.3 ^11.0 || ^12.0 MIT
v0.2.2 ^8.3 ^11.0 || ^12.0 MIT
v0.2.1 ^8.2 ^10.0 || ^11.0 MIT
v0.2.0 ^8.2 ^9.46|^10.0 MIT