gingdev / turso-hrana-php
Turso Hrana protocol implements
dev-main
2024-10-24 10:16 UTC
Requires
- amphp/websocket-client: ^2.0
- google/protobuf: ^4.28
Requires (Dev)
- phpstan/phpstan: ^1.12
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); }