zealot / dataframe
lightweight lib to find/read/write files/csv files
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zealot/dataframe
Requires
- php: >=7.0.0
- zealot/filesystem: ^1.0
This package is not auto-updated.
Last update: 2025-10-18 05:05:32 UTC
README
Lib to work with csv files/assoc arrays like DB table. For now implemented only whereIn(); (yeap, been inspired by pandas)
Getting Started
$pathToCsvFile = '/tmp/csvfile_emails.csv'; $utils = new IOUtils(); $dataFrame = $utils->fromCsvFile($pathToCsvFile); $filteredDF = $dataFrame->filter()->whereIn('email', ['sturkin30@gmail.com'])->get(); foreach ($filteredDF->getAssocArrayIterator() as $line) { var_dump($line); } //$utils->toCsvFile($filteredDF,'path to file')
Installing
composer require zealot/dataframe