softronicve/ipquery-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

softronicve/ipquery-laravel

最新稳定版本:v1.2.0

Composer 安装命令:

composer require softronicve/ipquery-laravel

包简介

Laravel package for ipquery.io

README 文档

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
  }
}

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-02