ek/csv

Export an array to CSV file download

v0.0.1 2015-10-06 20:42 UTC

This package is not auto-updated.

Last update: 2024-10-12 18:04:25 UTC


README

#Ek CSV

##How to use it?

require 'vendor/autoload.php';

$csv = new ek\CSV();
$header = ['Full Name', 'Address', 'City', 'State', 'Zip'];
$rows = ['John Doe', '1234 Street', 'St.Louis', 'MO', '63139'];
$exportFileName = 'export.csv'

$csv->render($headers, $rows, $exportfileName);