howtomakeaturn/csvdumper

Dump database into csv format.

1.1.0 2014-12-21 07:19 UTC

This package is auto-updated.

Last update: 2024-10-10 20:31:59 UTC


README

Help you dump database into CSV format, built on Laravel.

Usage

Dump a table and store it into a file

$dumper = new Howtomakeaturn\CSVDumper\CSVDumper($tableName);
$dumper->dumpAndStoreTable($folderPathToStore);

Get a CSV format string of a table

$dumper = new Howtomakeaturn\CSVDumper\CSVDumper($tableName);
$result = $dumper->dumpTable();

Installing

Using Composer:

$ composer require 'howtomakeaturn/csvdumper:1.0.0'

Or via json file:

"require": {
        "howtomakeaturn/csvdumper": "1.0.0"
}