import csv

how to use csv import in yii2?

Same way as in PHP: https://secure.php.net/manual/en/function.fgetcsv.php