lefuturiste/iptator
Composer 安装命令:
composer require lefuturiste/iptator
包简介
The best way to get details about an IP address, no ext required
README 文档
README
The best way to get details about an IP address, no php ext required. Get ip details from multiple api source.
Install
composer install lefuturiste/iptator
Requirement
This package use the guzzle http php library to make http request, so curl ext is required.
Usage
use Iptator\Scanner; $scanner = new Scanner(); $ip = $scanner->scan('1.1.1.1'); $ip->isp; // Cloudflare, Inc. $ip->countryName; // Australia $ip->city; // South Brisbane
Adapters
- ipapi.co
- ip-api.com
Test
vendor/bin/phpunit tests
统计信息
- 总下载量: 367
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-01