Open source · MIT

The installer for PHP.

One Composer command and one installer call away from a native LibSQL database client for PHP.

 composer global require darkterminal/turso-php-installer
 turso-php-installer install --php-version=8.4

Everything the install needs

A Laravel Zero console that wraps the Turso Client PHP releases, wires the right build into your PHP runtime, and keeps the rest — tokens, local sqld, updates — in one binary.

Laravel Zero CLI

One binary for install, uninstall, update, version, token:*, server:* and sqld:* commands.

One-command install

composer global require darkterminal/turso-php-installer && turso-php-installer install --php-version=8.3.

Stable releases only

Installs the stable releases of tursodatabase/turso-client-php. The unstable channel was removed.

PHP-native builds

Prebuilt NTS and TS extension assets are installed for PHP 8.2, 8.3, 8.4 and 8.5 and wired into your php.ini via --php-ini / --extension-dir. Running the CLI itself requires PHP 8.2 or newer. PHP 8.1 support was dropped.

Install in one command

Composer package plus the installer CLI.

shell
 composer global require darkterminal/turso-php-installer && turso-php-installer install --php-version=8.4

Before you run it

  • Install targets: PHP 8.2, 8.3, 8.4, 8.5 (nts / ts); to run the CLI: PHP 8.2+
  • composer global bin dir on PATH
  • Linux / macOS host (Windows: WSL or manual release download)

On first install

  • The installer reads the latest extension release automatically
  • Wires the NTS/TS build into php.ini via --php-ini
  • You are ready to open a database with new LibSQL(...)

Support the project

Maintenance and releases are funded by the community.