gingdev/turso-hrana-php

Turso Hrana protocol implements

dev-main 2024-10-24 10:16 UTC

This package is auto-updated.

Last update: 2024-11-24 10:29:23 UTC


README

<?php

use Gingdev\TursoHranaPHP\Hrana\HranaClient;
use Gingdev\TursoHranaPHP\LibSQL;

require __DIR__.'/vendor/autoload.php';

$client = HranaClient::create($appUrl, $authToken);
$db = new LibSQL($client);
$result = $db->query('SELECT * FROM users');

while ($record = $result->fetchArray(SQLITE3_ASSOC)) {
    print_r($record);
}