2017 © Pedro Peláez
 

library iban-validator

Parse and validate IBAN bank accounts

image

prometherion/iban-validator

Parse and validate IBAN bank accounts

  • Wednesday, March 29, 2017
  • by prometherion
  • Repository
  • 1 Watchers
  • 1 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

IBAN Validator

Just a simple class to check IBAN hash and get simple informations like country ISO code, routing number and account number., (*1)

Installation

Install via composer:, (*2)

composer require prometherion/iban-validator

Usage Example

<?php
use Prometherion\IbanValidator;

$valid_iban = IbanValidator::parse('IT40 S054 2811 1010 0000 0123 456');
$valid_iban->number; // 000000123456
$valid_iban->country; // IT
$valid_iban->routing; // 40s0542811101
$valid_iban->complete; // IT40S0542811101000000123456

$invalid_iban = IbanValidator::parse('PZ14 A014 7852 0369 0000 9874 654');
// Exception with message 'Country code PZ seems not valid'


$invalid_iban = IbanValidator::parse('IT40 S054 2811 1010 0000 0123 451');
// Exception with message 'IBAN IT40 S054 2811 1010 0000 0123 451 seems not valid!'

The Versions

29/03 2017

dev-master

9999999-dev

Parse and validate IBAN bank accounts

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-bcmath *