fernandopetry/ipcountry
最新稳定版本:1.0.3
Composer 安装命令:
composer require fernandopetry/ipcountry
包简介
Nome do país pelo IP
关键字:
README 文档
README
require_once './vendor/autoload.php'; use \Petry\IpCountry\CountryShow; // Informando o IP $country = CountryShow::getCountryByIp('200.147.67.142'); // Detectando o IP $country = CountryShow::getCountryByIp(); // Metodos $country->getLocale(); $country->getLocale_(); $country->getExtension(); $country->getCountry(); $country->getAcronym2(); $country->getAcronym3(); $country->getIbge(); $country->getFlag(); // RESULTADO: /* object(Petry\IpCountry\Country)[1] private 'locale' => string 'pt-BR' (length=5) private 'locale_' => string 'pt_BR' (length=5) private 'extension' => string '.br' (length=3) private 'country' => string 'Brasil' (length=6) private 'acronym2' => string 'BR' (length=2) private 'acronym3' => string 'BRA' (length=3) private 'ibge' => int 76 private 'flag' => null */
统计信息
- 总下载量: 5.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-30