shapecode / iban-bundle
此包已被弃用,不再维护。未建议替代包。
iban 生成器
1.0.4
2017-11-02 09:29 UTC
Requires
- php: ~5.5|~7.0
- ext-soap: *
- symfony/config: ~2.3|~3.0|~4.0
- symfony/dependency-injection: ~2.3|~3.0|~4.0
- symfony/framework-bundle: ~2.3|~3.0|~4.0
- symfony/http-kernel: ~2.3|~3.0|~4.0
This package is auto-updated.
Last update: 2022-02-01 12:55:01 UTC
README
安装说明
首先您需要将 shapecode/iban-bundle
添加到 composer.json
{ "require": { "shapecode/iban-bundle": "~2.0" } }
请注意,dev-develop
指向最新的开发版本。当然您也可以使用显式版本号,例如,1.0.*
。
您还需要将 ShapecodeIbanBundle
添加到您的 AppKernel.php
<?php // app/AppKernel.php //... class AppKernel extends Kernel { //... public function registerBundles() { $bundles = array( ... new Shapecode\Bundle\IbanBundle\ShapecodeIbanBundle(), ); //... return $bundles; } //... }
使用说明
<?php // get iban from country code, bank identification and account number $iban = $this->getContainer()->get('shapecode_iban.generator')->generateIban('DE', '50010517', '0648489890'); // get bic from iban $bic = $this->getContainer()->get('shapecode_iban.generator')->generateBic($iban); // validate iban $isIban = $this->getContainer()->get('shapecode_iban.generator')->validateIban($iban);