PHP code example of axklim / db-seeder-php

1. Go to this page and download the library: Download axklim/db-seeder-php 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/ */

    

axklim / db-seeder-php example snippets


(new SeederGenerator\Generator('host', 'port', 'name', 'username', 'password'))
    ->generate(['*'], __DIR__ . '/var/generated/', 'DbSeeder');

$fixtureManager = new SeederGenerator\FixtureManager('host', 'port', 'name', 'username', 'password');

$order = DbSeeder\Order::make();

$fixtureManager->save($order);
bash
./run.php # generate fixtures files
./tools/phpunit.phar