Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 717 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 717 Bytes

RockCSV

A message to Russian 🇷🇺 people

If you currently live in Russia, please read this message.

SWUbanner


ProcessWire module to help handling/reading CSV files easily and efficiently

Usage

$csv = $modules->get("RockCSV");
$file = $config->paths->assets."backups/import.csv";
$options = [
  'separator' => ';',
  'maxColumns' => 7,
  'headers' => true,
];
foreach($csv->read($file, $options) as $n=>$line) {
  // do what you want :)
}