erickskrauch/mcc-mnc
最新稳定版本:0.2.0
Composer 安装命令:
composer require erickskrauch/mcc-mnc
包简介
A library to convert MCC to country code and vice-versa
README 文档
README
I couldn't find any existing libraries with MCC identifiers map to their according country. So I made my own. The data is parsed from this wikipedia table.
A very rough implementation, but it does exactly what I needed for my job. Feel free to open an issue with your feature request.
Installation
To use this library, require it in Composer:
composer require erickskrauch/mcc-mnc
Usage
$countryCode = \ErickSkrauch\MccMnc\Reference::countryFromMcc(260); // 'PL' $mcc = \ErickSkrauch\MccMnc\Reference::mccFromCountry('US'); // 312
Contribute
This library in an Open Source under the MIT license. It is, thus, maintained by collaborators and contributors.
Feel free to contribute in any way. As an example you may:
- Trying out the
mastercode. - Create issues if you find problems.
- Reply to other people's issues.
- Review PRs.
Ensuring code quality
The project has several tools for quality control. All checks are performed in CI, but if you want to perform checks locally, here are the necessary commands:
composer normalize vendor/bin/php-cs-fixer fix -v vendor/bin/phpunit
统计信息
- 总下载量: 559
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-25