01 / PHP ECOSYSTEM

Capable open source tools for PHP.

Turso PHP Ecosystem is a collection of open-source packages for libSQL/Turso workflows: native extension installation, HTTP clients, Platform API SDKs, and Laravel/Doctrine integrations.

Open source PHP 8.2+ Community maintained

02 / THE LINEUP

Seven packages. One ecosystem.

Each package has a clear job. Pick the layer you need, from native extension setup to framework integration.

Installer

Turso PHP Installer

Install, update, or uninstall the native libSQL PHP extension on Linux and macOS.

Installcomposer global require darkterminal/turso-php-installer
Native Extension

Turso Client PHP

The upstream libSQL native extension for PHP. Use it directly or through framework drivers.

InstallInstall via Turso PHP Installer; see repository README.
HTTP Client

Turso Client HTTP

Pure PHP Hrana-over-HTTP client for libSQL/Turso. No native extension required.

Installcomposer require darkterminal/turso-client-http
Platform API

Turso API Client PHP

Typed Turso Platform API client, pinned to OpenAPI and covered by CI.

Installcomposer require darkterminal/turso-api-client-php
Laravel

Turso Platform Laravel

Laravel adapter for the Turso Platform API SDK with config publishing and Facade.

Installcomposer require darkterminal/turso-platform-laravel
Laravel

Turso Driver Laravel

Laravel database driver powered by the native libSQL extension.

Installcomposer require tursodatabase/turso-driver-laravel
Doctrine

Turso Doctrine DBAL

Doctrine DBAL driver for libSQL/Turso using the native PHP extension.

Installcomposer require tursodatabase/turso-doctrine-dbal

03 / CHOOSE A PATH

Pick the integration that fits your stack.

No one-size-fits-all runtime. Use native, HTTP, or Platform API depending on your environment and constraints.

A

Native extension

For local/libSQL performance and framework drivers that depend on the native extension.

  • Turso PHP Installer
  • Turso Client PHP
  • Turso Driver Laravel
  • Turso Doctrine DBAL
B

HTTP client

For environments where installing a native extension is not possible or not desirable.

  • Turso Client HTTP
  • Pure PHP + ext-curl
  • Works on shared hosting/CI
C

Platform API

For managing Turso Platform resources from PHP applications and automation scripts.

  • Turso API Client PHP
  • Turso Platform Laravel
  • Typed SDK, OpenAPI-pinned

04 / QUICK START

Start from the command line.

Install only what you need. The ecosystem is modular: packages can be used independently or combined in the same PHP stack.

ScopelibSQL/Turso PHP workflows
LicenseOpen source packages
CommunityDiscord, plain English
terminal
# Native extension installer
composer global require darkterminal/turso-php-installer
turso-php-installer install

# HTTP client (no extension)
composer require darkterminal/turso-client-http

# Platform API SDK
composer require darkterminal/turso-api-client-php

# Laravel / Doctrine integrations
composer require darkterminal/turso-platform-laravel
composer require tursodatabase/turso-driver-laravel
composer require tursodatabase/turso-doctrine-dbal

05 / COMMUNITY

Build it in the open.

Join the Turso PHP Ecosystem Discord for package discussion, help, and showcase. Keep it technical, respectful, and in plain English. Never share tokens or secrets.

Support my work banner

Support the maintenance and development of the ecosystem.