Repository navigation
Installation
Imam Ali Mustofa edited this page Nov 10, 2026
·
1 revision
- PHP 8.2, 8.3, 8.4 or 8.5
- Laravel 12 or 13 (13 requires PHP 8.3+)
- A libSQL PHP extension installation method via this package's bundled
installer (
darkterminal/turso-php-installer2.2+)
composer require tursodatabase/turso-driver-laravelLaravel 11+ uses bootstrap/providers.php:
return [
App\Providers\AppServiceProvider::class,
Turso\Driver\Laravel\LibSQLDriverServiceProvider::class,
];php artisan turso-php:installThis downloads the correct .so/.dll for your OS, PHP version and SAPI.
The installer also provides lifecycle commands:
| Command | Purpose |
|---|---|
turso-php:install |
Install the extension |
turso-php:update |
Update the installed extension |
turso-php:uninstall |
Remove the installed extension |
Run php artisan | grep turso-php for the full list.
See Connection Types.
- Package install: composer resolution tested across PHP 8.2–8.5 × Laravel 12/13 in CI.
- Extension install via
turso-php:install: exercised in CI and in thedocker/proof/harness (real install inside a freshphp:8.3-fpmcontainer).