PHP code example of gingdev / turso-hrana-dbal
1. Go to this page and download the library: Download gingdev/turso-hrana-dbal library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gingdev / turso-hrana-dbal example snippets
use Doctrine\DBAL\DriverManager;
use Gingdev\TursoHranaDBAL\Driver;
Url,
'driverClass' => Driver::class,
];
$conn = DriverManager::getConnection($connectionParams);
$result = $conn->executeQuery('SELECT * FROM users');
print_r($result->fetchAllNumeric());