Download the PHP package mpijierro/identity without Composer
On this page you can find all versions of the php package mpijierro/identity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mpijierro/identity
More information about mpijierro/identity
Files in mpijierro/identity
Package identity
Short Description Check identity number as NIF, CIF, NIE...
License MIT
Informations about the package identity
Identity for Laravel/Lumen ^5.1|6.X
Check valid spanish document id as NIF, CIF, NIE and IBAN back account.
Installation
Laravel 5.8 or greather => master
Laravel 5.1 to 5.7 => 1.1.0
Require this package with composer:
Add in the require section of your composer.json
Laravel/Lumen
If you want to use the facade, add this to your facades in app.php:
Note: Branch 1.1 has a modification in which the default error messages have been removed. If you use this branch, you must add the validation messages you want to your language file.
Usage
You can now check document ide using the Facade (when added)
methods returns true or false
It is also possible to use validation rules:
If error ocurred, error message will be:
Thanks
The original code for NIF, CIF AND NIE is in next link
Thanks to original code of: globalcitizen/php-iban
https://github.com/globalcitizen/php-iban
Thanks to original code for the validation of the NNSS of: http://intervia.com
http://intervia.com/doc/validar-numeros-de-la-seguridad-social/