alrik11es / spanish-utils
A set of tools for Spanish bureaucracy like CIF calculation, DNI, IBAN...
Installs: 3 917
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
pkg:composer/alrik11es/spanish-utils
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: