1. Go to this page and download the library: Download keboola/storage-api-client 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 / storage-api-client example snippets
use Keboola\StorageApi\Client;
use Keboola\Csv\CsvFile;
$client = new Client([
'token' => 'YOUR_TOKEN',
'url' => 'https://connection.keboola.com'
]);
$csvFile = new CsvFile(__DIR__ . '/my.csv', ',', '"');
$client->writeTableAsync('in.c-main.my-table', $csvFile);
use Keboola\StorageApi\Client;
use Keboola\StorageApi\TableExporter;
$client = new Client([
'token' => 'YOUR_TOKEN',
'url' => 'https://connection.keboola.com'
]);
$exporter = new TableExporter($client);
$exporter->exportTable('in.c-main.my-table', './in.c-main.my-table.csv', []);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.