shapecode / iban-bundle
iban generator
Installs: 373
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
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
Install instructions
First you need to add shapecode/iban-bundle
to composer.json
:
{ "require": { "shapecode/iban-bundle": "~2.0" } }
Please note that dev-develop
points to the latest development version. Of course you can also use an explicit version number, e.g., 1.0.*
.
You also have to add ShapecodeIbanBundle
to your AppKernel.php
:
<?php // app/AppKernel.php //... class AppKernel extends Kernel { //... public function registerBundles() { $bundles = array( ... new Shapecode\Bundle\IbanBundle\ShapecodeIbanBundle(), ); //... return $bundles; } //... }
Use instructions
<?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);