Skip to content

CsvRows ​

php
final class StanislasPoisson\FrenchPostalCode\Core\CsvRows

Reads the rows of a CSV file with a header, and checks them against what the manifest announces.

Source: src/Core/CsvRows.php

Methods ​

rows() ​

php
public function rows(string $path, string $table, array $columns, int $rows): Generator
ParameterDescription
$columnsthe columns that the manifest announces
$rowsthe number of rows that the manifest announces

Returns Generator<int, array<string, string|null>> the rows, one at a time, indexed by column name

Throws DatasetException when the file is missing, truncated or altered

Documentation of next , built from 068662f on main by pipeline #37508150537 on 2026-10-06.