keboola/php-csvtable

CSV file class with Keboola StorageApi extensions

1.1.1 2020-10-27 14:00 UTC

This package is auto-updated.

Last update: 2020-10-27 14:08:55 UTC


README

Description

A class that extends Keboola\CsvFile functionality by adding Keboola StorageApi Attribute and PrimaryKey variables

Usage

    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"