https://github.com/tursodatabase/turso-client-php
Turso + PHP - libSQL Extension for PHP (Community SDK)
https://github.com/tursodatabase/turso-client-php
driver extension libsql php sqlite turso
Last synced: about 1 month ago
JSON representation
Turso + PHP - libSQL Extension for PHP (Community SDK)
- Host: GitHub
- URL: https://github.com/tursodatabase/turso-client-php
- Owner: tursodatabase
- License: mit
- Created: 2024-06-03T23:07:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-02T15:43:55.000Z (2 months ago)
- Last Synced: 2025-03-31T06:04:04.785Z (about 2 months ago)
- Topics: driver, extension, libsql, php, sqlite, turso
- Language: Rust
- Homepage: https://darkstation.mintlify.app/dark-extensions
- Size: 1.6 MB
- Stars: 85
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![]()
Turso + PHP (Community SDK)
SQLite for Production. Powered by libSQL.
## PHP Versions
| PHP Versions | Build Versions |
| ------------- | ----------------|
| 8.1 | TS / NTS |
| 8.2 | TS / NTS |
| 8.3 | TS / NTS |
| 8.4 | TS / NTS |**Note**: TS (Thread Safe), NTS (Non Thread-Safe). **Support for:** Linux/ Mac/Darwin / Windows/WSL
---
## Installation
Installing the extension should be not complecated, it's easy and like using **Composer Package Installer**. Or, if you belive with this quotes:
> If there is a hard way, why choose the easy way?
>
> — MeSo you need to go with the **Manual Installation**.
Auto Installer
turso-php-installer
is a Composer package capable of executing various commands related to libSQL, simplifying the development process, and making it easier to simulate in a local environment.```bash
composer global require darkterminal/turso-php-installer
```
Add to `PATH` variable:
```bash
export COMPOSER_BIN_DIR=$(composer config --global home)/vendor/bin
```We have two options to install the extension using the installer:
**Interactive Mode**
```bash
turso-php-installer install
```
---
**Non-interactive Mode**
```bash
turso-php-installer install -y --php-version=8.3
```
Manual Installation
Download the latest build extension/driver binary you can see at release page.
- 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 beginingCheck on your console/terminal
```bash
php --m | grep libsql
```## Contributors

## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.