shapecode/iban-bundle

此包已被弃用,不再维护。未建议替代包。

iban 生成器

安装: 372

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

公开问题: 0

类型:symfony-bundle

1.0.4 2017-11-02 09:29 UTC

This package is auto-updated.

Last update: 2022-02-01 12:55:01 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

安装说明

首先您需要将 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);