DEV Community

Cover image for Lil Story about libSQL Extension in PHP
Imam Ali Mustofa
Imam Ali Mustofa

Posted on

Lil Story about libSQL Extension in PHP

Who's the Creator of the libSQL Extension in PHP? Spoiler: It's Me!

Let me share a quick story. The other day, someone messaged me on social media. They sent a screenshot asking, “Who’s the creator of the libSQL extension in PHP?”

Well, guess what? It’s me.

screenshot

Yep, me. The same person who talks about libSQL and Turso Database everywhere. Why not? It's my work (even though I'm not Turso Internal). If that sounds a bit full of myself, I’ll admit it. That’s just how I roll.

Now, about this Software Freestyle Engineer (SFE) title. Sounds fancy, right? But really, it’s a bit of a joke. I mean, it’s true, but still a joke. I don’t fit into the typical mold. I’m the guy who bends the rules, writes some code, and laughs about it later.

Being an SFE is all about embracing the wild side. It takes guts to try what others won't. And sure, I like to think I make it look easy. I’m not here to follow the crowd—I’m here to change the game.

So, when people ask about the libSQL extension, I don’t just give them a boring answer. I show them me. This extension wouldn't exist without my mix of boldness and a bit of charm. I’m someone who takes risks, makes mistakes, and then shares it online.

So there you have it. If you've wondered who's behind the libSQL extension in PHP, it's me. The SFE. A mix of humor and smarts. The one who makes things happen.

Honestly? I wouldn’t change a thing.

Catch you later, folks!

☕️ Support My Work at GitHub


GitHub logo tursodatabase / turso-client-php

Turso + PHP - libSQL Extension for PHP (Community SDK)

Turso + PHP

Turso Client PHP

A community-driven PHP SDK for libSQL — the SQLite fork designed for the edge, replication, and production workloads

MIT License Discord Contributors Downloads Release


Overview

turso-client-php (libSQL Extension) brings the power of libSQL to PHP applications. It’s more than just SQLite — with built-in support for remote connections, replicas, sync, offline writes, and transactions.

✨ Key features:

  • 🚀 Works with SQLite and libSQL
  • 🔌 Multiple connection modes
    • local
    • in-memory
    • remote
    • remote replica
    • offline-writes also support for libsql-server (sqld)
  • 🔒 Transactions, prepared statements, and batch execution
  • 🐘 Native PHP extension built in Rust for speed
  • 🐳 Easy setup with turso-php-installer


Supported Versions






























PHP Versions Build Versions
8.1 TS / NTS
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, macOS, Windows, WSL


Quick Start

<?php
$libsql = new LibSQL("file:example.db
Enter fullscreen mode Exit fullscreen mode

Top comments (0)