PHPackages                             turso/libsql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. turso/libsql

ActiveLibrary

turso/libsql
============

libSQL bindings for PHP

v0.2.5(11mo ago)235.9k5[2 issues](https://github.com/tursodatabase/libsql-php/issues)[1 PRs](https://github.com/tursodatabase/libsql-php/pulls)MITPHPPHP &gt;=8.3CI passing

Since Oct 3Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/tursodatabase/libsql-php)[ Packagist](https://packagist.org/packages/turso/libsql)[ RSS](/packages/turso-libsql/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (15)Used By (0)

 [  ![libSQL PHP](/.github/cover.png)  ](https://tur.so/turso-php)

libSQL PHP
==========

[](#libsql-php)

 Databases for PHP multi-tenant AI Apps.

 [**Turso**](https://tur.so/turso-php) · [**Docs**](https://docs.turso.tech) · [**Quickstart**](https://docs.turso.tech/sdk/php/quickstart) · [**SDK Reference**](https://docs.turso.tech/sdk/php/reference) · [**Blog &amp; Tutorials**](https://turso.tech/blog)

 [  ![MIT License](https://camo.githubusercontent.com/e663435dfe723c4eff4617f31f6661b25d0789b8948b9ae5ca910343ec925748/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f747572736f64617461626173652f6c696273716c2d7068703f636f6c6f723d304636323442)  ](LICENSE) [  ![Discord](https://camo.githubusercontent.com/ba85246b3bdc8772f5323e2bb567722e4534cbf70597acd9b9715024751b2410/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3933333037313136323638303935383938363f636f6c6f723d304636323442)  ](https://tur.so/discord-php) [  ![Contributors](https://camo.githubusercontent.com/b2339f60ac43e8b2e6c84346421da592937fdcf38d02230761113c56482ac834/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f747572736f64617461626173652f6c696273716c2d7068703f636f6c6f723d304636323442)  ](#contributors) [  ![Total downloads](https://camo.githubusercontent.com/1fa14951521f2f2c955f88d9e589291e1ab9f6282dbf6f536a2c8ea83caea8e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747572736f2f6c696273716c3f636f6c6f723d304636323442)  ](https://packagist.org/packages/turso/libsql) [  ![Examples](https://camo.githubusercontent.com/e830ca8f0d1c850d05609aa30aa954a6891cea7a9f4334f2f324fbf020774d49/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f62726f7773652d6578616d706c65732d304636323442)  ](/examples)

Features
--------

[](#features)

- 🔌 Works offline with [Embedded Replicas](https://docs.turso.tech/features/embedded-replicas/introduction)
- 🌎 Works with remote Turso databases
- ✨ Works with Turso [AI &amp; Vector Search](https://docs.turso.tech/features/ai-and-embeddings)

Warning

This SDK is currently in technical preview. [Join us in Discord](https://tur.so/discord-php) to report any issues.

Install
-------

[](#install)

```
composer require turso/libsql
```

Quickstart
----------

[](#quickstart)

The example below uses Embedded Replicas and syncs data every 1000ms from Turso.

```
