composer require ryoueno/csv
id, name,
1, "UDON",
2, "SHUSHI",
・
・
・
$src = new \Gojiro\Src('path/to/MyCSV.csv');
$csv = new \Gojiro\Csv($src);
$csv->get();
/*
[
0 => [
'id' => 1,
'name' => 'UDON',
],
1 => [
'id' => 2,
'name' => 'SHUSHI',
]
.
.
.
]
*/
$csv->select(['name'])->where->(['id' => 2])->get();
/*
[
1 => [
'name' => 'SHUSHI',
]
]
*/