PHP code example of church / laravel-id-card-number

1. Go to this page and download the library: Download church/laravel-id-card-number 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/ */

    

church / laravel-id-card-number example snippets




public function store(Request $request)
{
    $validator = Validator::make($request->all(), [
        'id_number' => 'ssage' => $validator->errors()->first(),
        ]);
    }   

}

$IDCard = new \Church\IDCard\IDCard('身份证号');
$IDCard->getAddress();
$IDCard->getSex();
$IDCard->getBirthday();