2017 © Pedro PelĂĄez
 

library iban

validate and generate IBANs

image

jschaedl/iban

validate and generate IBANs

  • Sunday, April 23, 2017
  • by jschaedl
  • Repository
  • 11 Watchers
  • 60 Stars
  • 336,150 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 19 Forks
  • 7 Open issues
  • 19 Versions
  • 10 % Grown

The README.md

Iban

Important: This library is derecated. Please use https://github.com/jschaedl/iban-validation instead., (*1)

A small library for validating and generating International Bankaccount Numbers (IBAN). It is build for PHP 5.3+., (*2)

Build Status Latest Stable Version Total Downloads, (*3)

Development status

This library is ready to use. The Iban validation should be run fine, but there is no warranty for the generation functionality. Please use it at your own risk., (*4)


Changelog

Version 1.3.0

  • Activation of new german Iban rules valid from 6th of March 2016

Version 1.2.0

  • Activation of new german Iban rules valid from 5th of December 2016

Installation

To install jschaedl/iban just run:, (*5)

$ composer require jschaedl/iban

You can see this library on Packagist., (*6)

Composer installs autoloader at ./vendor/autoload.php. If you use jschaedl/iban in your php script, add:, (*7)

require_once 'vendor/autoload.php';

Usage example

<?php

use IBAN\Validation\IBANValidator;
use IBAN\Generation\IBANGeneratorDE;
use IBAN\Generation\IBANGeneratorNL;

// validation example
$ibanValidator = new IBANValidator();
if ($ibanValidator->validate('DE89370400440532013000')) {
    echo "DE89370400440532013000 is valid!";
}

// generate german iban example #1
$ibanGenerator = new IBANGeneratorDE();
$generatedIban = $ibanGenerator->generate('60050101', '502502502'); 
// $generatedIban => DE15600501010001108884

// generate german iban example #2
$generatedIban = IBANGenerator::DE('60050101', '502502502');
// $generatedIban => DE15600501010001108884

// generate dutch iban example #1
$ibanGenerator = new IBANGeneratorNL();
$generatedIban = $ibanGenerator->generate('ABNA', '123456789'); 
// $generatedIban => NL02ABNA0123456789

// generate dutch iban example #2
$generatedIban = IBANGenerator::NL('ABNA', '123456789');
// $generatedIban => NL02ABNA0123456789


How to contribute

If you want to fix some bugs or want to enhance some functionality, please fork this repository and create a feature branch based on the develop branch or a htfix branch based on the master branch. Then fix the bug you found or add your enhancements and make a pull request. Please commit your changes in tiny steps and add a detailed description on every commit., (*8)

Unit Testing

All pull requests must be accompanied by passing unit tests. This repository uses PHPUnit and Composer. You must run composer install to install this package's dependencies before the unit tests will run. You can run the test via:, (*9)

phpunit -c tests/phpunit.xml tests/

ToDos

  • add support for more countries

Author

Jan SchÀdlich, (*10)

Contributions

https://github.com/jschaedl/Iban/graphs/contributors, (*11)

License

MIT Public License, (*12)

The Versions

23/04 2017

dev-new_rules_20170605

dev-new_rules_20170605 http://github.com/jschaedl/Iban

validate and generate IBANs

  Sources   Download

MIT

The Development Requires

validation iban generate

07/04 2017
05/02 2017
05/02 2017

dev-new_rules_20170306

dev-new_rules_20170306 http://github.com/jschaedl/Iban

validate and generate IBANs

  Sources   Download

MIT

The Development Requires

validation iban generate

06/11 2016

dev-rewrite/v2.0.0

dev-rewrite/v2.0.0 http://github.com/jschaedl/Iban

A small library for validating and generating International BankAccount Numbers (IBAN).

  Sources   Download

MIT

The Requires

 

The Development Requires

validation iban generation

06/11 2016

dev-feature/move_methods_to_abstract_rule

dev-feature/move_methods_to_abstract_rule http://github.com/jschaedl/Iban

A small library for validating and generating International BankAccount Numbers (IBAN).

  Sources   Download

MIT

The Requires

 

The Development Requires

validation iban generation

06/11 2016

dev-feature/remove_docs_folder

dev-feature/remove_docs_folder http://github.com/jschaedl/Iban

validate and generate IBANs

  Sources   Download

MIT

The Requires

 

The Development Requires

validation iban generate

06/11 2016

dev-feature/clean_up_composer_json

dev-feature/clean_up_composer_json http://github.com/jschaedl/Iban

A small library for validating and generating International BankAccount Numbers (IBAN).

  Sources   Download

MIT

The Requires

 

The Development Requires

validation iban generation

07/11 2014
17/06 2014
09/03 2014
03/03 2014
18/12 2013
18/12 2013
25/11 2013

v1.0

1.0.0.0 http://github.com/jschaedl/Iban

validate and generate IBANs

  Sources   Download

MIT

The Requires

 

The Development Requires

validation iban generate