dev-master
9999999-devA simple way to seed your database from a csv file using phinx
MIT
The Requires
The Development Requires
v0.0.1
0.0.1.0A simple way to seed your database from a csv file using phinx
MIT
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
A simple way to seed your database from a csv file using phinx
$ composer require backendtea/phinx-csv-seeder
Basic usage:, (*2)
<?php
use BackEndTea\MigrationHelper\CsvSeeder;
class UserSeeder extends CsvSeeder
{
public function run()
{
$this->insertCsv('users', __DIR__ . '/users.csv');
}
}
Will try and insert all csv records into the given table. The keys in the csv file are required to match the keys in the database. Any values for a row not specified become their defaults., (*3)
A simple way to seed your database from a csv file using phinx
MIT
A simple way to seed your database from a csv file using phinx
MIT