softronicve / ipquery-laravel
Laravel package for ipquery.io
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/softronicve/ipquery-laravel
Requires
- php: ^8.2
- illuminate/contracts: ^11.0|^12.0
- illuminate/http: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- mockery/mockery: ^1.4
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-01-03 16:19:28 UTC
README
With this wrapper you can get information from an IP FREE
Getting Started
You don't need an API KEY or any other configuration, it's very easy
Installation
composer require softronicve/ipquery-laravel
Open your application's \app\Http\Kernel.php file and add the following to the Kernel::middleware property:
protected $middleware = [ ... \Softronic\Ipquery\Middleware\IpqueryMiddleware::class, ];
Laravel 12 Configuration
Open your application's \bootstrap\providers.php file and add the following to your array:
return [ ... \Softronic\Ipquery\IpqueryServiceProvider::class, ];
Quick Start
Route::get('/testIpquery', function (Request $request) { return $request->ipquery; });
will return the following json with your IP requested:
>>> $request->ipquery { "ip": "1.1.1.1", "isp": { "asn": "AS13335", "org": "Cloudflare, Inc.", "isp": "Cloudflare, Inc." }, "location": { "country": "Australia", "country_code": "AU", "city": "Sydney", "state": "New South Wales", "zipcode": "1001", "latitude": -33.8545484001867, "longitude": 151.200162009128, "timezone": "Australia/Sydney", "localtime": "2025-08-03T13:38:55" }, "risk": { "is_mobile": false, "is_vpn": false, "is_tor": false, "is_proxy": false, "is_datacenter": true, "risk_score": 0 } }