spekulatius / PHPScraper

A universal web-util for PHP.

Home Page:https://phpscraper.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic Processing for CSV files

spekulatius opened this issue · comments

Implement basic CSV parsing functionality.

API

As usual, keep it simple:

Direct Call

$data = $web->parseCsv('https://test-pages.phpscraper.de/1.csv');

Chained

$data = $web->go('https://test-pages.phpscraper.de/1.csv')->parseCsv()

Separate Calls

$web->go('https://test-pages.phpscraper.de/1.csv');
$data = $web->parseCsv();

Associative Array vs. Simple Array

While the CSVs are flat by nature, they can be resolved into an associative array. This should be considered as an option. Suitable naming TBC.

Consideration