thelhc / ip-info
IpInfo Laravel Service Provider
Installs: 31 483
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 3
Requires
- php: ~5.6|~7.0|~7.1|~7.2|~7.3
- guzzlehttp/guzzle: ^6.2
- illuminate/support: 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^5.4 || ~6.0
This package is not auto-updated.
Last update: 2024-11-19 15:48:46 UTC
README
Install
Via Composer
$ composer require thelhc/ip-info
After installing, add the ServiceProvider to the providers array in config/app.php.
TheLHC\IpInfo\IpInfoServiceProvider::class
Then add the Facade to the aliases array
'IpInfo' => TheLHC\IpInfo\Facades\IpInfo::class,
Usage
use IpInfo; $ip = IpInfo::lookup('###.###.###.###');
License
The MIT License (MIT). Please see License File for more information.