triesss/ip-nation-locator
Composer 安装命令:
composer require triesss/ip-nation-locator
包简介
This package will provide the origin nation for a given ip address.
README 文档
README
This package is used to get the country of an IP address.
You can use the IpNationLocator class to get the country of an IP address.
To make the class work, you need to provide a CSV or Sqlite3 file containing the IP ranges and the country codes.
Requirements
- A CSV or Sqlite3 file containing the IP ranges and the country codes
in ISO 3166-1 alpha-2
- The CSV file should have the following columns:
ip_network: The network address with its' subnet mask, e.g.1.2.0.0/24country_code: The country code
- The Sqlite3 file must have a table
ip_networkswith the following columns:ip_network: The network address with its' subnet mask, e.g.1.2.0.0/24country_code: The country code
- The CSV file should have the following columns:
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-30