2017 © Pedro Peláez
 

library php-iso11649

ISO 11649 creditor reference library for php

image

kmukku/php-iso11649

ISO 11649 creditor reference library for php

  • Wednesday, November 15, 2017
  • by kmukku
  • Repository
  • 1 Watchers
  • 0 Stars
  • 162 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 138 % Grown

The README.md

php-iso11649

ISO 11649:2009 RF creditor reference library for PHP, (*1)

Inspired by nruotsal/node-iso11649., (*2)

Installation

php composer require kmukku/php-iso11649:dev-master, (*3)

Generating RF creditor reference

RF creditor reference can be generated from existing reference., (*4)

Existing reference characteristics: * Contain only numbers 0-9 and/or characters A-Z (example AB2G5 => RF68 AB2G 5). * Max length 21 characters. * Not case sensitive (example aB2g5 => RF68 AB2G 5). * Can be string with spaces (example '12345 12345' => RF45 1234 5123 45)., (*5)

  use kmukku\phpIso11649\phpIso11649;

  $referenceGenerator = new phpIso11649();
  echo $referenceGenerator->generateRfReference('1234512345',true);
  // => RF45 1234 5123 45

  echo $referenceGenerator->generateRfReference('1234512345',false);
  // => RF451234512345

Validating RF creditor reference

Valid RF creditor reference characteristics: * Must start with characters RF. * Must contain two checksum numbers in indexes 3 and 4. * Max length 25 characters. * Reference part must follow rules described in 'Existing reference characteristics' section., (*6)

  use kmukku\phpIso11649\phpIso11649;

  $referenceGenerator = new phpIso11649();
  $referenceGenerator->validateRfReference('RF45 1234 5123 45');
  // => true

Release History

  • 1.0.0
    • Initial release

Collaboration

Run Tests

  vendor/bin/phpunit

or, (*7)

  vendor/bin/phpunit --testsuite=unit

The Versions

15/11 2017

dev-master

9999999-dev https://github.com/kmukku/php-iso11649

ISO 11649 creditor reference library for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Keijo Mukku

banking finance iso 11649 rf creditor reference

15/11 2017

1.4

1.4.0.0 https://github.com/kmukku/php-iso11649

ISO 11649 creditor reference library for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Keijo Mukku

banking finance iso 11649 rf creditor reference

19/03 2017

1.3

1.3.0.0 https://github.com/kmukku/php-iso11649

ISO 11649 creditor reference library for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Keijo Mukku

banking finance iso 11649 rf creditor reference

19/03 2017

v1.2

1.2.0.0 https://github.com/kmukku/php-iso11649

ISO 11649 creditor reference library for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Keijo Mukku

banking finance iso 11649 rf creditor reference