1,安装扩展 composer require nyg/faker 2,使用 $name=\Nyg\Faker\Faker::name(); $phone=\Nyg\Faker\Faker::phone();