PHP Класс 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).
Наследование: implements isocodes\IsoCodeInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getCifSum ( string $cif ) : mixed Used to calculate the sum of the CIF, DNI and NIE.
validate ( string $nif ) : boolean NIF and DNI validation.

Описание методов

getCifSum() публичный статический Метод

Used to calculate the sum of the CIF, DNI and NIE.
public static getCifSum ( string $cif ) : mixed
$cif string
Результат mixed

validate() публичный статический Метод

NIF and DNI validation.
public static validate ( string $nif ) : boolean
$nif string The NIF or NIE
Результат boolean