Download the PHP package arielmejiadev/geo-ip without Composer
On this page you can find all versions of the php package arielmejiadev/geo-ip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arielmejiadev/geo-ip
More information about arielmejiadev/geo-ip
Files in arielmejiadev/geo-ip
Package geo-ip
Short Description Resolve a visitor's country and location from their IP address in Laravel — modern syntax, swappable drivers (MaxMind GeoLite2, ip-api, ipinfo), zero external calls when you want them.
License MIT
Homepage https://github.com/arielmejiadev/geo-ip
Informations about the package geo-ip
GeoIp for Laravel
Resolve a visitor's country and geolocation from their IP address using swappable drivers — DB-IP Lite (default, free, no signup), MaxMind GeoLite2, ip-api, or ipinfo.
Documentation
Full documentation is available at arielmejiadev.github.io/geo-ip.
Quick Start
This publishes the config and downloads the free DB-IP Lite database (no signup or API key needed).
Usage
One-shot lookups
Fluent API
Drivers
| Driver | Env Value | Requirements |
|---|---|---|
| DB-IP Lite | dbip (default) |
php artisan geo-ip:install |
| MaxMind GeoLite2 | maxmind |
License key + php artisan geo-ip:install --maxmind |
| ip-api.com | ip-api |
None (45 req/min limit) |
| ipinfo.io | ipinfo |
IPINFO_TOKEN |
| Null | null |
None (for testing) |
Set the driver in .env:
Testing
Set the driver to null in your test environment to avoid external calls:
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
- ArielMejiaDev
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of geo-ip with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0||^13.0
geoip2/geoip2 Version ^3.0