composer require otobank/treasure
<?php
require __DIR__.'/vendor/autoload.php';
use Otobank\Treasure\Treasure;
$treasure = new Treasure([
'host' => 'in.treasuredata.com',
'writeKey' => 'YOUR_WRITE_ONLY_APIKEY_IS_HERE',
'database' => 'DATABASE_NAME',
]);
$treasure->addRecord([
'itemId' => 101,
'saleId' => 10,
'userId' => 1,
]);