jschaedl/iban
最新稳定版本:1.3.0
Composer 安装命令:
composer require jschaedl/iban
包简介
validate and generate IBANs
关键字:
README 文档
README
Important: This library is derecated. Please use https://github.com/jschaedl/iban-validation instead.
A small library for validating and generating International Bankaccount Numbers (IBAN). It is build for PHP 5.3+.
Development status
This library is ready to use. The Iban validation should be run fine, but there is no warranty for the generation functionality. Please use it at your own risk.
Changelog
Version 1.3.0
- Activation of new german Iban rules valid from 6th of March 2016
Version 1.2.0
- Activation of new german Iban rules valid from 5th of December 2016
Installation
To install jschaedl/iban just run:
$ composer require jschaedl/iban
You can see this library on Packagist.
Composer installs autoloader at ./vendor/autoload.php. If you use jschaedl/iban in your php script, add:
require_once 'vendor/autoload.php';
Usage example
<?php use IBAN\Validation\IBANValidator; use IBAN\Generation\IBANGeneratorDE; use IBAN\Generation\IBANGeneratorNL; // validation example $ibanValidator = new IBANValidator(); if ($ibanValidator->validate('DE89370400440532013000')) { echo "DE89370400440532013000 is valid!"; } // generate german iban example #1 $ibanGenerator = new IBANGeneratorDE(); $generatedIban = $ibanGenerator->generate('60050101', '502502502'); // $generatedIban => DE15600501010001108884 // generate german iban example #2 $generatedIban = IBANGenerator::DE('60050101', '502502502'); // $generatedIban => DE15600501010001108884 // generate dutch iban example #1 $ibanGenerator = new IBANGeneratorNL(); $generatedIban = $ibanGenerator->generate('ABNA', '123456789'); // $generatedIban => NL02ABNA0123456789 // generate dutch iban example #2 $generatedIban = IBANGenerator::NL('ABNA', '123456789'); // $generatedIban => NL02ABNA0123456789
How to contribute
If you want to fix some bugs or want to enhance some functionality, please fork this repository and create a feature branch based on the develop branch or a htfix branch based on the master branch. Then fix the bug you found or add your enhancements and make a pull request. Please commit your changes in tiny steps and add a detailed description on every commit.
Unit Testing
All pull requests must be accompanied by passing unit tests. This repository uses PHPUnit and Composer.
You must run composer install to install this package's dependencies before the unit tests will run.
You can run the test via:
phpunit -c tests/phpunit.xml tests/
ToDos
- add support for more countries
Author
Contributions
https://github.com/jschaedl/Iban/graphs/contributors
License
MIT Public License
jschaedl/iban 适用场景与选型建议
jschaedl/iban 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.08M 次下载、GitHub Stars 达 63, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「validation」 「generate」 「IBAN」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jschaedl/iban 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jschaedl/iban 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jschaedl/iban 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package parses and validates International Bank Account Number (IBAN).
Powertools for much lazy with Laminas because I hate writing Controllers, Forms, InputFilters, their Factories, and you hate writing all that stuff too.
PHP IBAN - This library provides a converter for account number, bank code and IBAN.
Extensions for Laravel validation rules to validate national person and company identifiers
Laravel API documentation generating tool
Adds request-parameter validation to the SLIM 3.x PHP framework
统计信息
- 总下载量: 1.08M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 65
- 点击次数: 19
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 未知