PHPackages                             ulabox/nif-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ulabox/nif-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ulabox/nif-validator
====================

Yet another(?) PHP implementation of the spanish NIF validator

v1.3.0(2y ago)25118.6k↓23.7%7[1 issues](https://github.com/ulabox/nif-validator/issues)1MITPHPPHP &gt;=7.0

Since Jul 25Pushed 2y ago3 watchersCompare

[ Source](https://github.com/ulabox/nif-validator)[ Packagist](https://packagist.org/packages/ulabox/nif-validator)[ Docs](https://github.com/ulabox/nif-validator)[ RSS](/packages/ulabox-nif-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (1)

nif-validator
=============

[](#nif-validator)

[![Build Status](https://camo.githubusercontent.com/428ae57f5ddb9fa989cc9f81f29be2aabb05871e3f2f83d9edbf4a55080f0582/68747470733a2f2f6170692e7472617669732d63692e6f72672f756c61626f782f6e69662d76616c696461746f722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ulabox/nif-validator)

A modern PHP 7.0+ Spanish NIF (Número de Indentifación Fiscal) validator.

Why another NIF 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
------------

[](#installation)

Using Composer:

```
composer require ulabox/nif-validator

```

Usage
-----

[](#usage)

```
