Installation composer require jialeicui/faker-chinese-id-number Usage use FakerChineseIdCard\Provider\Person; $faker = \Faker\Factory::create('zh_CN'); $faker->addProvider(new Person($faker)); $faker->idNumber;