summaryrefslogtreecommitdiff
path: root/scripts/create-random-users.php
blob: a8b7e4d32a2a0dccd4a7c12672206f15bb8dc3de (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($container);

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