The Turso PHP Installer is the Composer package and console CLI that installs the LibSQL PHP extension for your PHP application.
It wraps the stable release binaries of the Turso Client PHP project and wires the correct NTS/TS build into your PHP runtime.
What the installer does
- Detects the PHP runtime version and picks the right release asset.
- Downloads the prebuilt extension binary for
ntsorts. - Points the installer at your
php.iniand extension directory via--php-iniand--extension-dir. - Writes an
extension=line into the selectedphp.ini; each additional SAPI needs its ownconf.ddrop-in and a separatephp -mcheck.
Release channel
| Channel | Source | Use |
|---|---|---|
| Stable | tursodatabase/turso-client-php releases |
The only channel the installer offers |
The unstable channel was removed. --unstable is no longer an option, and an
installation created from it must be uninstalled and reinstalled from stable.
Command surface
install,uninstall,update,versiontoken:create,token:show,token:delete,token:listserver:*CA / peer certificate commandssqld:*local sqld environment and daemon commands
update refreshes the libSQL extension, not the installer CLI. Sail users
pin the CLI version through the Composer constraint in the Dockerfile.
Local development workflow
For a complete session — token, optional certificates, sqld environment, server, shell and cleanup — follow the Local development workflow. It shows the order of commands and links to each namespace reference.