Closed uuf6429 closed 10 years ago
Hi Chris,
I've refactored the code a little bit and added generation of dutch IBANs. Please have a look at commit SHA: 0de1816b22b2ecc5b4fc9cb6dd7ed1c045996c86 You can now use the default IBANGenerator with a custom RuleFactory. However, you have to implement a custom RuleFactory and a default rule implementation of the IBAN generation for every country you would like to generate IBANs for.
For which country would you like to generate an IBAN?
Bye, Jan
Hallo Jan!
I'm trying to convert to Maltese ibans, but eventually I'd like it to Support all relevant countries.
I'll see how RuleFactory works later on.
Thanks for The quick response!
Cheers, Chris.
Hi Chris,
supporting generation of maltese ibans was actually not so complicated. So here it is:
// you can use the factory method
IBANGenerator::MT('MALT' . '01100', '0012345MTLCAST001S');
// or the standard constructor with the generation method
$generator = IBANGeneratorMT();
$generator->generate(('MALT' . '01100', '0012345MTLCAST001S'));
Hope, this fits your needs, Jan
Thanks!
Hello,
I would like to generate an IBAN given it's parts (bank code, branch code, account) without having the code passing through BAV class.
This is mostly to get this code working with non-DE stuff as well. If there is another way, I'd like to know how it's done.
Thanks, Chris.