PHP code example of mpijierro / identity

1. Go to this page and download the library: Download mpijierro/identity library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mpijierro / identity example snippets


\MPijierro\Identity\IdentityServiceProvider::class,

'Identity' => MPijierro\Identity\Facades\Identity::class,

Identity::isValidCif('1234foo');
Identity::isValidNif('1234foo');
Identity::isValidNie('1234foo');
Identity::isValidIban('1234foo');
Identity::isValidNNSS('1234foo');

'nif_field' => 'nif'

'cif_field' => 'cif'

'nie_field' => 'nie'

'iban_field' => 'iban'

'nnss_field' => 'nnss'


 "The $foo_attribute field is not a valid Foo.";