https://github.com/phore/phore-datapipes
Dynamic data piping and analyzing
https://github.com/phore/phore-datapipes
Last synced: 5 months ago
JSON representation
Dynamic data piping and analyzing
- Host: GitHub
- URL: https://github.com/phore/phore-datapipes
- Owner: phore
- Created: 2018-08-16T16:14:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T11:45:10.000Z (over 6 years ago)
- Last Synced: 2024-05-18T12:20:32.428Z (about 2 years ago)
- Language: PHP
- Homepage: https://infracamp.org/phore/
- Size: 60.5 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phore Datapipes
## Reading CSV
```php
$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
```php
```