承接 snipershady/ipapigeolocation 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

snipershady/ipapigeolocation

最新稳定版本:v1.0.5-stable

Composer 安装命令:

composer require snipershady/ipapigeolocation

包简介

Free wrapper to easily implements ip-api.com free API

README 文档

README

Free wrapper to easily implements ip-api.com free API

composer require snipershady/ipapigeolocation
use IPApiGeolocationWrapper\Service\IpInfoRetriever;


class fooClass(){
    public function getIpInfo(): \IPApiGeolocationWrapper\Entity\IpInfo{
          $ipInfoRetriever = new \IPApiGeolocationWrapper\Service\IpInfoRetriever();
          $ip = "8.8.8.8";
          return $ipInfoRetriever->findInfoByIp($ip);
    }
}

Return Type

IPApiGeolocationWrapper\Entity\IpInfo {#1139 ▼
  -status: "success"
  -continent: "North America"
  -continentCode: "NA"
  -country: "United States"
  -countryCode: "US"
  -region: "VA"
  -regionName: "Virginia"
  -city: "Ashburn"
  -district: ""
  -zip: "20149"
  -latititude: 39.03
  -longitude: -77.5
  -timezone: "America/New_York"
  -offset: -14400
  -currency: "USD"
  -isp: "Google LLC"
  -organizationName: "Google Public DNS"
  -as: "AS15169 Google LLC"
  -asname: "GOOGLE"
  -reverse: "dns.google"
  -mobile: false
  -proxy: false
  -hosting: true
  -query: "8.8.8.8"
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-09-24