定制 erickskrauch/mcc-mnc 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Latest Version on Packagist Build Status Changelog PHP version Software License

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 master code.
  • 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

统计信息

  • 总下载量: 613
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-25