Download the PHP package interficie/laravel-spanishid without Composer
On this page you can find all versions of the php package interficie/laravel-spanishid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-spanishid
SpanishID for Laravel 6.X|7.X
Library to add validations for spanish state-emitted identity document numbers, including NIF, CIF, NIE and Social Security Number (SSN).
Installation
Require this package with composer:
Usage
You can now check a document using the Facade:
You can also use these as validation rules:
Thanks
-
The original laravel package by mpijierro https://github.com/marcmascort/identity
-
The original code for NIF, CIF AND NIE is in next link:
http://www.michublog.com/informatica/8-funciones-para-la-validacion-de-formularios-con-expresiones-regulares - Thanks to original code for the validation of the NNSS of:
http://intervia.com/doc/validar-numeros-de-la-seguridad-social/