---
title: "Announcing Laravel Support and PHP PDO Interface"
description: "Turso has released `libsql-laravel`, an official open-source Laravel adapter, along with a PHP PDO interface."
url: "https://swe.quest/articles/announcing-laravel-support-and-php-pdo-interface-98c2c7a584efdc2c"
canonical: "https://turso.tech/blog/announcing-laravel-support"
source: "Turso"
published: "2025-01-09"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["php","sqlite","vector-search"]
---

# Announcing Laravel Support and PHP PDO Interface

A post on [Turso](https://swe.quest/sources/turso.md), published 2025-01-09, 4 min read, Announcement. Original: [https://turso.tech/blog/announcing-laravel-support](https://turso.tech/blog/announcing-laravel-support)

## Summary

Turso has released \`libsql-laravel\`, an official open-source Laravel adapter, along with a PHP PDO interface. Both are in technical preview. The adapter extends Laravel's SQLiteConnection, so existing SQLite-compatible code, Eloquent models, migrations and transactions work against local files or remote Turso databases. It replaces community drivers that needed custom PHP extensions but does require FFI to be enabled. A walkthrough builds a movie similarity search using \`VectorCast\`, the \`vector\` and \`vectorIndex\` migration helpers, and a \`nearest\` query builder method.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PHP](https://swe.quest/tags/php.md) (Languages)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)

## Prerequisites

- Laravel Eloquent and migrations
- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))

## Keywords

Turso, libSQL, Laravel, libsql-laravel, PDO, Eloquent

## Related posts

- [Turso Adds Ruby on Rails Support](https://swe.quest/articles/turso-adds-ruby-on-rails-support-80c171904d4e2326.md): Turso · 2024-12-18 · Medium · 3 min read · Ruby, SQLite, Databases
  Turso has released a technical preview of libsql\_activerecord, an ActiveRecord adapter that connects Rails applications to Turso/libSQL databases.
- [Getting started with Laravel and Postgres](https://swe.quest/articles/getting-started-with-laravel-and-postgres-e9ee98d4a4f87aab.md): Supabase · 2024-01-22 · Medium · 2 min read · PHP, PostgreSQL
  A new Laravel app can be connected to a Supabase-hosted Postgres database in a few steps: scaffold the project with Composer, install Laravel Breeze for built-in authentication, set DB\_CONNECTION=pgsql and DATABASE\_URL to the Supabase pooler connection string, then run migrations and start the dev server.
- [Building a RESTful API with PHP and SQLite](https://swe.quest/articles/building-a-restful-api-with-php-and-sqlite-893ffe1a1d128ccc.md): Turso · 2024-09-04 · Medium · 5 min read · PHP, SQLite, API design
  A minimal CRUD REST API in PHP can be built with Dumbo, a small Hono-inspired routing framework, and Turso's experimental HTTP-only PHP SDK for libSQL/SQLite.
- [Turso v0.6.0](https://swe.quest/articles/turso-v0-6-0-5eb94c2c93fd0b4b.md): Turso · 2026-05-12 · Medium · 12 min read · SQLite, Databases, SQL, Storage engines
  Turso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO.
- [We're building Postgres in Rust. Using the LLVM of databases](https://swe.quest/articles/we-re-building-postgres-in-rust-using-the-llvm-of-databases-e44d34208278a99e.md): Turso · 2026-07-16 · Easy · 11 min read · PostgreSQL, SQLite, Rust, Query engines, Open source
  Turso, a Rust rewrite of SQLite, is adding a Postgres frontend by parsing Postgres SQL into a common AST and compiling it to Turso's VDBE bytecode, turning the engine into an "LLVM of databases" with pluggable frontends.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
