rodgermd/ibanapide-bundle

iban-api.de integration

Installs: 123

Dependents: 0

Stars: 2

Watchers: 1

Language: PHP

v0.3.1 2014-04-17 10:08 UTC

README

Integration of http://www.iban-api.de/soap-service/

Add Controller for ajax actions

Add to routing.yml:

rodgermd_iban_controller:
    resource: "@RodgermdIbanApiDeBundle/Controller/"
    type: annotation
    prefix: /iban

Usage

Get service:

$api = $container->get('rodgermd.iban.api');

Get IBAN code

Throws IbanApiErrorException on error

$iban = $api->generateIBAN($countryCode, $bankIdentification, $accountNr); 

Validate IBAN code

$valid = $api->validateIban($iban);

Get BIC code from IBAN

Throws IbanApiErrorException on error

$bic = $api->getBicFromIban($iban);