Download the PHP package ulabox/nif-validator without Composer
On this page you can find all versions of the php package ulabox/nif-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ulabox/nif-validator
More information about ulabox/nif-validator
Files in ulabox/nif-validator
Download ulabox/nif-validator
More information about ulabox/nif-validator
Files in ulabox/nif-validator
Vendor ulabox
Package nif-validator
Short Description Yet another(?) PHP implementation of the spanish NIF validator
License MIT
Homepage https://github.com/ulabox/nif-validator
Package nif-validator
Short Description Yet another(?) PHP implementation of the spanish NIF validator
License MIT
Homepage https://github.com/ulabox/nif-validator
Please rate this library. Is it a good library?
Informations about the package nif-validator
nif-validator
A modern PHP 7.0+ Spanish NIF (Número de Indentifación Fiscal) validator.
Why another NIF validator?
Other NIF validators we saw either had really obscure code or just implemented a validator for the DNI/NIE, not the CIF.
Installation
Using Composer:
Usage
Starting from version 1.1.x you can also separetely validate personal and entity nifs
Starting from version 1.2.x you can also separetely validate individual nif types
<?php
use NifValidator\NifValidator;
//CIF
assert(NifValidator::isValidCif('B65410011'));
//DNI
assert(NifValidator::isValidDni('93471790C'));
//NIE
assert(NifValidator::isValidNie('X5102754C'));
This validator does not strip or uppercase any character, it's your responsibility to previously filter the input.
All versions of nif-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package ulabox/nif-validator contains the following files
Loading the files please wait ....