phore / datapipes
Data analyzing framework
dev-master
2020-02-20 11:45 UTC
Requires
- php: >=7.2
- phore/filesystem: *
- psr/log: ^1.1@dev
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-20 22:47:17 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