Introduction
The #1 Native LibSQL Driver for PHP - Build by Handsome Person from ๐ฎ๐ฉ
LibSQL PHP Driver/Extension/Whatever designed to seamlessly handle local, remote, and remote replica/embedded replica connections, offering versatility and efficiency for your applicationโs data management needs. With an intuitive interface and flexible configuration options, LibSQL empowers developers to effortlessly integrate database operations into your PHP projects.
LibSQL Extension
LibSQL Extension for PHP GitHub Repository
libSQL is an open source, open contribution fork of SQLite, created and maintained by Turso. We aim to evolve it to suit many more use cases than SQLite was originally designed for, and plan to use third-party OSS code wherever it makes sense.
libSQL is licensed under an Open Source License, and we adhere to a clear Code of Conduct.
Features
- Embedded replicas that allow you to have replicated database inside your app.
- libSQL server for remote SQLite access, similar to PostgreSQL or MySQL
- Supports Rust, JavaScript, Python, Go, PHP, and more.
Download
Download the latest build extension/driver binary you can see at Release page. Itโs available for:
- Linux
- Mac/Darwin
- Windows (still struggle, but you need to try use WSL)
Installation
- ๐ฆ Extract the archive
- ๐ Locate somewhere in your machine
- ๐ฝ Copy a relative path that address that extension/driver
- ๐ Open
php.ini
search;extension
if you using nano (ctrl+w) then searching for it - ๐ add in the next-line
extension=liblibsql_php.so
(in Linux) without;
at the begining
Check on your console/terminal
Now, you can use LibSQL
class in your PHP code!
Quickstart
Remember, this is not a library or ORM, this is the native extension for LibSQL.
Thatโs it! Itโs feel like SQLite but it will more powerful ๐
Was this page helpful?