PHP code example of keboola / php-csvtable
1. Go to this page and download the library: Download keboola/php-csvtable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keboola / php-csvtable example snippets
use Keboola\CsvTable\Table;
$table = new Table('name', ['id', 'column', 'names']);
$table->writeRow(['1','row','data']);
$table->addAttributes(['created_by' => $username]);
$table->setPrimaryKey('id');
git clone https://github.com/keboola/php-csvtable.git
cd php-csvtable
docker-compose build
docker-compose run --rm dev composer install --no-scripts