Turso Client PHP is a community-driven SDK that brings the power of libSQL — the open-source, production-ready fork of SQLite — into PHP applications.
It is not “just SQLite”:
- ⚡ Designed for Production — provides a SQLite-compatible engine enhanced with modern features.
- 🌍 Remote & Distributed — supports remote connections, replicas, and synchronization across environments.
- 📦 PHP-Native — exposed as a PHP extension built in Rust for performance and reliability.
- 🐘 Familiar API — simple, intuitive methods for executing queries, managing transactions, and working with prepared statements.
This SDK makes it possible to use Turso/libSQL as the database layer for PHP projects, from small local apps to distributed cloud-native systems.
Traditional SQLite is great for local development but limited for modern distributed applications.
With turso-client-php, you get:
- Local development using SQLite with zero setup.
- Remote databases running on Turso or any libSQL server.
- Replicas to scale reads and reduce latency.
- Offline writes with sync support when connectivity is restored.
- Transactions, prepared statements, batch operations — all natively supported.
Whether you’re building a Laravel app, a CLI tool, or a PHP microservice, this extension provides a bridge to modern SQLite.
| PHP Version | Build Variants |
|---|---|
| 8.1 | TS / NTS |
| 8.2 | TS / NTS |
| 8.3 | TS / NTS |
| 8.4 | TS / NTS |
- TS = Thread Safe
- NTS = Non Thread Safe
- ✅ Linux
- ✅ macOS
- ✅ Windows / WSL
- PHP ≥ 8.1
- Composer (for installer)
- Rust (if building from source)
- Docker (optional, for containerized development)