PHP code example of prettybx / fixtures

1. Go to this page and download the library: Download prettybx/fixtures library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

prettybx / fixtures example snippets




return [
    'ID' => 1,
    'FIRST_NAME' => 'Ivan',
    'LAST_NAME' => 'Petrov',
];



return [
    'ID' => faker()->randomDigit,
    'FIRST_NAME' => faker()->firstName,
    'LAST_NAME' => faker()->lastName,
];

$users = fixture()->makeMany('user', 3); // Вернет массив, состоящий из 3 фикстур типа user