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 & 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
- Turso Quickstart — Learn how create and connect your first database.
- SDK Quickstart — Learn how to install and execute queries using the libSQL client.
- 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:
- Embedded Replicas
- Multi-DB Schemas
- ATTACH Database
- Platform API
- Data Edge
- Branching
- Point-in-Time Recovery
- Scale to Zero
Download
Download the latest build extension/driver binary you can see at Release page.
It's available for:
- Linux
- Mac/Darwin
- Windows (WSL) / Windows x64
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 usingnano
(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