darkterminal / turso-php-installer
Turso libSQL Extension PHP Installer
Package info
github.com/darkterminal/turso-php-installer
pkg:composer/darkterminal/turso-php-installer
Fund package maintenance!
Requires
- php: ^8.2.0
- fakerphp/faker: ^1.24
- guzzlehttp/guzzle: ^7.9
- laravel/prompts: ^0.3.5
- lcobucci/jwt: ^5.5
Requires (Dev)
- laravel-zero/framework: ^11.36
- laravel/pint: ^1.21
- mockery/mockery: ^1.6
- pestphp/pest: ^2.36
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.0
- dev-ui/hero-logo-watermark
- dev-docs/local-development-workflow
- dev-docs/sqld-tty-and-failure-modes
- dev-fix/github-api-token
- dev-fix/version-from-composer-json
- dev-ci/helpers-install-after-35
- dev-fix/sqld-server-run-missing-db-path
- dev-fix/token-list-id
- dev-fix/metadata-after-download
- dev-fix/preflight-libsql-module
- dev-fix/release-metadata-404
- dev-plan/006-local-development-helpers
- dev-feat/drop-unstable-channel
- dev-feat/drop-php-8.1-and-readme
- dev-docs/favicon-and-palette
- dev-docs/fix-pages-logo
- dev-docs/alignment-and-branding
- dev-docs/fix-plan-003-maintenance-note
- dev-plan/005-public-docs-sweep
- dev-plan/004-stub-ci-gates
- dev-plan/003-upstream-runtime-alignment
- dev-plan/002-sail-preflight
- dev-plan/001-verification-baseline
- dev-feat-sqld-command
- dev-feat-server-command
This package is auto-updated.
Last update: 2026-11-25 08:06:53 UTC
README
Turso PHP Installer
A Composer package and Laravel Zero CLI that installs the native libSQL PHP extension on Linux and macOS.
Overview
turso-php-installer downloads the prebuilt libSQL extension for your PHP runtime and wires it into php.ini. It also ships local development helpers: database tokens, server certificates and local sqld environments.
- Installs the NTS or TS build matching your PHP version
- Stable releases only, from
tursodatabase/turso-client-php - Interactive and non-interactive modes
- Laravel Sail stubs with a fail-hard extension preflight
Supported Versions
| PHP Versions | Build Versions |
|---|---|
| 8.2 | TS / NTS |
| 8.3 | TS / NTS |
| 8.4 | TS / NTS |
| 8.5 | TS / NTS |
TS = Thread Safe, NTS = Non Thread Safe
Supported on Linux (x86_64, arm64) and macOS. On Windows, use WSL or download the extension binary from the extension releases.
The CLI itself requires PHP 8.2 or newer. PHP 8.1 support was dropped; --php-version=8.1 is rejected.
Installation
composer global require darkterminal/turso-php-installer
Add the Composer global bin directory to your PATH:
export PATH="$(composer config --global home)/vendor/bin:$PATH"
Install interactively:
turso-php-installer install
Or non-interactively (example for PHP 8.3):
turso-php-installer install -n --php-version=8.3
Custom php.ini and extension directory:
turso-php-installer install -n --php-version=8.3 \ --php-ini=/etc/php/8.3/cli/php.ini \ --extension-dir=/path/to/extensions
Verify the extension is loaded:
php -m | grep libsql
Other commands: uninstall, update (extension only, not the CLI), version, token:*, server:*, sqld:*. Run turso-php-installer list for the full surface.
Documentation
Full documentation is published on GitHub Pages: https://darkterminal.github.io/turso-php-installer/
- Getting started
- Install
- Update
- Uninstall
- Local development workflow
- Tokens & local development
- Server certificates
- sqld local environments
- Laravel Sail guide
Canonical Sail stubs live in stubs/sail/.
Development
composer install vendor/bin/pest bash -n stubs/sail/run_turso stubs/sail/sail-entrypoint python3 scripts/check_docs.py
Community & Support
- Report issues on GitHub Issues
- Sponsor via GitHub Sponsors or Saweria
License
This project is open-sourced under the MIT License.
