Sevajol Bastien 05bd6e081a goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
..
lib/Exporter goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
test goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
.gitignore goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
.travis.yml goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
README.md goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
composer.json goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ
phpunit.xml.dist goback to version stable 2.1.7 and install bundles and bundles dependencies 12 gadus atpakaļ

README.md

Data Exporter

Build Status

Data Exporter is a lightweight library to export data into different formats.


<?php
// Prepare the data source
$dbh = new \PDO('sqlite:foo.db');
$stm = $dbh->prepare('SELECT id, username, email FROM user');
$stm->execute();

$source = new PDOStatementSource($stm);

// Prepare the writer
$writer = new CsvWriter('data.csv');

// Export the data
Handler::create($source, $writer)->export();

Google Groups: For questions and proposals you can post on this google groups