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-10-20 22:35:45 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