ahmard/geodata
Composer 安装命令:
composer require ahmard/geodata
包简介
A simple class that provides access to country & state list.
README 文档
README
A simple class that provides access to country & state list.
Installation
composer require ahmard/geodata
Usage
Fetch country list
<?php use Ahmard\GeoData\Country; require __DIR__ . '/vendor/autoload.php'; $countries = Country::all(); var_dump($countries);
Get country by phone code
<?php use Ahmard\GeoData\Country; require __DIR__ . '/vendor/autoload.php'; $countryInfo = Country::getByPhoneCode(234); var_dump($countryInfo);
Get country states
<?php use Ahmard\GeoData\Country; require __DIR__ . '/vendor/autoload.php'; $states = Country::getStates(160); var_dump($states);
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-11