gingdev/turso-hrana-php

Turso Hrana protocol implements

1.0.2 2024-10-24 09:54 UTC

This package is auto-updated.

Last update: 2024-10-24 10:16:49 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);
}