stidges/country-flags
最新稳定版本:v2.0.0
Composer 安装命令:
composer require stidges/country-flags
包简介
A small package to convert a country code to the corresponding country flag emoji
README 文档
README
A small package to convert a country code to the corresponding country flag emoji.
Note: Emoji flags are not supported on Windows, which displays two-letter country codes instead of emoji flag images.
Installation
You can install the package via Composer:
$ composer require stidges/country-flags
Basic Usage
$countryFlag = new CountryFlag; echo $countryFlag->get('NL'); // "🇳🇱"
Aliasing
If you would like to make country codes available under a custom aliases, you can pass these to the constructor:
$countryFlag = new CountryFlag([ 'AA' => 'NL', ]); echo $countryFlag->get('AA'); // "🇳🇱"
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@stidges.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 239.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-29