Sevajol Bastien e88f214ced maj vendor 12 år sedan
..
lib/Exporter maj vendor 12 år sedan
test maj vendor 12 år sedan
.gitignore maj vendor 12 år sedan
.travis.yml maj vendor 12 år sedan
README.md maj vendor 12 år sedan
composer.json maj vendor 12 år sedan
phpunit.xml.dist maj vendor 12 år sedan

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