arslanimamutdinov/iso-standard-4217 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

arslanimamutdinov/iso-standard-4217

Composer 安装命令:

composer require arslanimamutdinov/iso-standard-4217

包简介

README 文档

README

Code Coverage Badge

This component provides features for ISO 4217 standard - get currency codes according to standard.

Installation

composer require arslanimamutdinov/iso-standard-4217

Terms and designations

  • alpha3 - three-letter currency code e.g. RUB;
  • numericCodes - numeric currency code e.g. 643;
  • name - string currency name e.g. Russian ruble.

Component parts description

Currency - ISO 4217 standard model, contains properties:

  • name - currency name;
  • alpha3 - currency alpha3 code;
  • numericCode - currency numeric code.

ISO4217 - abstract class provides set of static function for working with ISO 4217 standard.

ISO4217Utility - service class wrapper over ISO4217 (need instantiate class object).

Base component features

ISO4217 features

Provides access to currency standard by alpha3-named static function.

For example:

// returns instance of Currency class
// includes currency data for United Arab Emirates dirham
ISO4217::AED();

Provides access to currency raw data.

For example:

ISO4217::getRawStandardsData();

Provides search standards by given currency alpha3 codes.

For example:

// returns Currency[]
ISO4217::getAllByAlpha3Codes(['AED', 'GBP']);

Provides search standards by given currency numeric codes.

For example:

// returns Currency[]
ISO4217::getAllByNumericCodes(['784', '826']);

Provides search standards by given currency alpha3 code.

For example:

// returns Currency or null if not found
ISO4217::getByAlpha3('AED');

Provides search standards by given currency numeric code.

For example:

// returns Currency or null if not found
ISO4217::getByNumericCode('784');

Provides access to all currency standards represented in array of Currency objects.

For example:

// returns Currency[]
ISO4217::getAll();

ISO4217Utility features

Provides all features from ISO4217 but with utility instance creation.

For example:

$currencyUtility = new ISO4217Utility();

$currencyUtility->AED();

Contributing

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.

Source(s)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固