linelab-studio/country-provider

根据ISO代码或locale头部提供country对象。

2.0.4 2020-10-11 16:56 UTC

This package is auto-updated.

Last update: 2024-09-12 23:31:21 UTC


README

通过名称、locale或ISO3166代码提供Country对象

安装

使用包管理器 composer 安装CountryProvider。

comoser require linelab-studio/country-provider

使用方法

<?php
include '../vendor/autoload.php';

$countryProvider = new \LabStudio\GeoPolitic\CountryProvider();

$country = $countryProvider->get('POL');

echo '<pre>';
var_dump($country);
echo '</pre>';

贡献

许可

Apache License 2.0