A class that extends Keboola\CsvFile functionality by adding Keboola StorageApi Attribute and PrimaryKey variables
use Keboola\CsvTable\Table;
$table = new Table('name', ['id', 'column', 'names']);
$table->writeRow(['1','row','data']);
$table->addAttributes(['created_by' => $username]);
$table->setPrimaryKey('id');
Result:
id,column,names
"1","row","data"