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