/turso-client-php

Turso + PHP - libSQL Extension for PHP

Primary LanguageRustMIT LicenseMIT

Turso + PHP

Turso + PHP

SQLite for Production. Powered by libSQL.

Turso · Quickstart · Examples · Docs · Discord · Blog & Tutorials

discord activity


Shows a black logo in light color mode and a white one in dark color mode.

Documentation

  1. Turso Quickstart — Learn how create and connect your first database.
  2. SDK Quickstart — Learn how to install and execute queries using the libSQL client.
  3. SDK Reference — Dive deeper with the libSQL SDK reference and examples.

What is Turso?

Turso is a SQLite-compatible database built on libSQL, the Open Contribution fork of SQLite. It enables scaling to hundreds of thousands of databases per organization and supports replication to any location, including your own servers, for zero-latency reads.

Learn more about what you can do with Turso:

Download

Download the latest build extension/driver binary you can see at Release page.

It's available for:

PHP Versions

  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Installation

  • Extract the archive
  • Locate somewhere in your machine
  • Copy a relative path that address that extension/driver
  • Open php.ini search ;extension if you using nano (ctrl+w) then searching for it
  • add in the next-line extension=liblibsql_php.so (in Linux) without ; at the begining

Check on your console/terminal

php --m | grep libsql

Installer Script

Install Turso Client PHP / libSQL Extension without worry using installer script, only for Linux and MacOS Turso PHP Installer