Run the following command in your project to install the latest applicable version of the package:
composer require stefanak-michal/thingsdb-php
use ThingsDB\ThingsDB;
$thingsDB = new ThingsDB();
$result = $thingsDB->auth(); // returns true on success
$message = $thingsDB->query('@:stuff', '"Hello World!";'); // returns "Hello World!"
A more complete description of the PHP connector can be found in the link below.