alrik11es / spanish-utils
This package is abandoned and no longer maintained.
The author suggests using the https://github.com/ronanguilloux/IsoCodes package instead.
A set of tools for Spanish bureaucracy like CIF calculation, DNI, IBAN...
0.1.2
2014-04-07 13:29 UTC
Requires
- php: >=5.3.0
- ronanguilloux/isocodes: 1.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2017-03-01 09:36:37 UTC
README
Library outdated refer https://github.com/ronanguilloux/IsoCodes for more things like this.
A set of tools for Spanish bureaucracy like CIF calculation, IBAN...
Installation with composer
Take a look to this link https://packagist.org/packages/alrik11es/spanish-utils
Usage
As simple as this:
$dni = \SpanishUtils\Components\NIF::setUp('04381012H'); $result = $dni->checkData();
Other example:
$cif = \SpanishUtils\Components\CIF::setUp('N99461501'); $result = $cif->checkData();
IBAN validator:
$iban = \SpanishUtils\Components\IBAN::setUp('CZ49 2339 0395 7989 0507 1131'); $result = $iban->checkData();
References
This package uses another libraries that you can also use in your package: