PHP code example of jialeicui / faker-chinese-id-number

1. Go to this page and download the library: Download jialeicui/faker-chinese-id-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/ */

    

jialeicui / faker-chinese-id-number example snippets


use FakerChineseIdCard\Provider\Person;

$faker = \Faker\Factory::create('zh_CN');
$faker->addProvider(new Person($faker));
$faker->idNumber;