ip2location/ipinfodb-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require ip2location/ipinfodb-php
包简介
Library to query geolocation information from IPInfoDB free API service.
关键字:
README 文档
README
IPInfoDB PHP
This IPInfoDB PHP class provides a fast lookup of country, region, city, latitude, longitude, ZIP code and time zone as values. The IPInfoDB web service is designed for server-to-server call.
This library can be used in many types of projects such as:
- Locate where is your website visitors come from
- Analyze your web server logs to determine the countries of your visitors
- Country blocker
- Page redirection according to country
- Geotargeting in advertisement
IPInfoDB free API uses the geolocation data from IP2Location LITE database. IP2Location Commercial version provides higher accuracy is available at https://www.ip2location.com/web-service with no rate limit.
Methods
Below are the methods supported in this class.
| Method Name | Description |
|---|---|
| getCountry | Return country code and country name information of the IP address. |
| getCity | Return city information of the IP address, such as region, city, latitude, longitude, ZIP Code and time zone. |
FAQ
How to I get the API key?
Please register your API key at https://ipinfodb.com/register.
Is there any restriction for using this web service?
There is a rate limit of 2 queries per second.
Copyright
Copyright (C) 2021 - 2024 by IPInfoDB.com, support@ipinfodb.com
统计信息
- 总下载量: 582
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-04