php-lib

常用库

Faker 数据填充

<?php

require __DIR__ . '/../../vendor/autoload.php';

$faker = Faker\Factory::create('zh_CN'); // create a French faker
for ($i=0; $i < 100; $i++) {
    echo $faker->name. '-'. $faker->numerify('640############') . '-' . $faker->phoneNumber . '-' . $faker->company. "<br/>";
}