globalcitizen/php-iso7064
最新稳定版本:v1.0.1
Composer 安装命令:
composer require globalcitizen/php-iso7064
包简介
php-iban is a library implementing the pure ISO/IEC 7064 checksum functions.
README 文档
README
This is a reference implementation of the various 'pure' ISO7064 algorithms in PHP. It is 100% generated code, from algorithm metadata. Note that the 'hybrid' algorithms are not implemented.
Algorithms implemented
| Algorithm | Function name | Input | Output |
|---|---|---|---|
| ISO/IEC 7064, MOD 11-2 | iso7064_mod11_2() |
Numeric | 1 x Alphanumeric |
| ISO/IEC 7064, MOD 37-2 | iso7064_mod37_2() |
Alphanumeric | 1 x Alphanumeric |
| ISO/IEC 7064, MOD 97-10 | iso7064_mod97_10() |
Numeric | 2 x Numeric |
| ISO/IEC 7064, MOD 661-26 | iso7064_mod661_26() |
Alphabetic | 2 x Alphabetic |
| ISO/IEC 7064, MOD 1271-36 | iso7064_mod1271_36() |
Alphanumeric | 2 x Alphanumeric |
History
August 2020
- Version 1.0.1 released: Various edge case fixes by neo954. Thanks!
February 2016
- Version 1.0.0 released: First stable release passing tests.
- Version 0.1.2 released: On the way to functionality.
- Version 0.1.1 released: Syntax error resolved.
- Version 0.1.0 released: Absolutely and completely untested! :)
Inspiration was @danieltwager's ISO7064 Java Library and the pressing need to auto-detect checksum algorithms for php-iban. Annoyingly, there didn't seem to be any way to define normal functions dynamically in PHP, so I had to settle for code generation instead of a reflective implementation.
统计信息
- 总下载量: 24.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2016-02-18