123456789101112131415 |
- <?php
- require '/usr/local/code/common/commoncore.inc.php';
- require 'vendor/autoload.php';
- // More here https://github.com/fzaninotto/Faker
- use Faker\Factory as Faker;
- $db = DBi::getInstance('db-stats', 'test');
- $faker = Faker::create();
- for($i = 0; $i < 5; $i++)
- {
- $sql = "INSERT INTO faker SET faker_name = '" . $faker->name . "'";
- $db->query($sql);
- }
|