PHP Class IsoCodes\Nif

About Tax Identification Number (Spain's Número de Identificación Fiscal, NIF) or Foreign Identification Number (Spain's Número de Identificación de Extranjeror, NIE): The applicable Spanish legislation currently requires that any individual or legal entity with economic or professional interests in Spain, or involved in a relevant way for tax purposes, must hold a tax identification number (in the case of legal entities) or a foreigner identity number (for individuals).
Inheritance: implements isocodes\IsoCodeInterface
Show file Open project: ronanguilloux/isocodes Class Usage Examples

Public Methods

Method Description
getCifSum ( string $cif ) : mixed Used to calculate the sum of the CIF, DNI and NIE.
validate ( string $nif ) : boolean NIF and DNI validation.

Method Details

getCifSum() public static method

Used to calculate the sum of the CIF, DNI and NIE.
public static getCifSum ( string $cif ) : mixed
$cif string
return mixed

validate() public static method

NIF and DNI validation.
public static validate ( string $nif ) : boolean
$nif string The NIF or NIE
return boolean