summaryrefslogtreecommitdiff
path: root/scripts/create-random-users.php
blob: 47336c6423437ea82aaa9c5db124d3f3d2fe0fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env php
<?php

require __DIR__.'/../app/common.php';

use Model\User;

$userModel = new User($registry);

for ($i = 0; $i < 500; $i++) {
    $userModel->create(array(
        'username' => 'user'.$i,
        'password' => 'password'.$i,
        'name' => 'User #'.$i,
        'email' => 'user'.$i.'@localhost',
    ));
}