alrik11es/spanish-utils

A set of tools for Spanish bureaucracy like CIF calculation, DNI, IBAN...

Installs: 92

Dependents: 0

Stars: 4

Watchers: 1

Forks: 1

Language: PHP

0.1.2 2014-04-07 13:29 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: