phore/datapipes

Data analyzing framework

dev-master 2020-02-20 11:45 UTC

This package is auto-updated.

Last update: 2022-06-20 17:15:12 UTC


README

Reading CSV

$csv = new CsvInput("/path/to/file.csv", ";");
$csv->setIngoreLinesStartingWith(["#"]);
$csv->readHeader();

foreach ($csv->getData() as $row) {
    echo $row["header1"] . $row["header2"];
}

Features:

  • Ingores empty Lines
  • Ingores Comments (optional)
  • Strict mode for checking for column count
  • Reads Header (optional)

DateTime Reading

Parse files on the harddisk for timestamps and bring them into correct order