A set of tools for Spanish bureaucracy like CIF calculation, IBAN...
Take a look to this link https://packagist.org/packages/alrik11es/spanish-utils
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();
This package uses another libraries that you can also use in your package: