Home

Awesome

<p align="center"> <a href="https://docs.turso.tech/sdk/php/quickstart"> <img alt="Turso + PHP" src="https://github.com/tursodatabase/turso-client-php/assets/950181/f007cbca-02f7-46c4-a502-392484e76bc7" width="1000"> <h3 align="center">Turso + PHP</h3> </a> </p> <p align="center"> SQLite for Production. Powered by <a href="https://turso.tech/libsql">libSQL</a>. </p> <p align="center"> <a href="https://turso.tech"><strong>Turso</strong></a> · <a href="https://docs.turso.tech/quickstart"><strong>Quickstart</strong></a> · <a href="/examples"><strong>Examples</strong></a> · <a href="https://docs.turso.tech"><strong>Docs</strong></a> · <a href="https://discord.gg/turso"><strong>Discord</strong></a> · <a href="https://turso.tech/blog"><strong>Blog &amp; Tutorials</strong></a> </p> <p align="center"> <a href="https://discord.com/invite/4B5D7hYwub"> <img src="https://dcbadge.vercel.app/api/server/4B5D7hYwub?style=flat" alt="discord activity" title="join us on discord" /> </a> </p>
<p align="center"> <a href="https://discord.gg/turso"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/UhuW3zm.png"> <source media="(prefers-color-scheme: light)" srcset="https://i.imgur.com/vljWbfr.png"> <img alt="Shows a black logo in light color mode and a white one in dark color mode." src="https://i.imgur.com/vGCC0I4.png"> </picture> </a> </p>

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

Installation

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