worksome / laravel-ip-geolocation
A driver-based package to handle IP geolocation for Laravel
Fund package maintenance!
worksome
Installs: 155 492
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 1
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.8
- laravel/framework: ^10.0 || ^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.6
- nunomaduro/collision: ^7.0 || ^8.1
- orchestra/testbench: ^8.0 || ^9.0
- pestphp/pest: ^2.33
- pestphp/pest-plugin-laravel: ^2.2
- worksome/coding-style: ^2.8
README
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 CHANGELOG 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.