This is the Turso/libSQL Extension for PHP installer script for Linux and MacOS. Make sure you already have PHP minimal version 8.0.
- Laravel Herd Dynamic Extension Installation
composer global require darkterminal/turso-php-installer
make sure the installer is available in PATH
environment variable:
export PATH="$HOME/.composer/vendor/bin;$PATH"
# or
export PATH="$HOME/.config/composer/vendor/bin;$PATH"
USAGE: <command> [options] [arguments]
install Install Turso libSQL Extension for PHP
uninstall Uninstall Turso libSQL Extension for PHP
update Update Turso libSQL Extension for PHP
version Display Turso PHP Installer version
token:create Create libSQL Server Database token for Local Development
token:show Show libSQL Server Database token for Local Development
Interactive Mode
turso-php-installer install
Non Interactive Mode
turso-php-installer install -y --php-vesion=8.3 --php-ini-file=/etc/php/<version>/cli/php.ini --ext-destionation=/path/to/your-custom/extensions/directory
See
turso-php-installer install --help
turso-php-installer uninstall
turso-php-installer update
Create Database Token
Create libSQL Server Database token for Local Development
turso-php-installer token:create
Show Database Token
Show libSQL Server Database token for Local Development
turso-php-installer token:show
This command will show all tokens and secrets. You can also see indivial token read at turso-php-installer token:show --help
The Extension Is Not Working in Windows
Please, download the official release extension binary from Turso Client PHP GitHub Release Page. Or you can you WSL or you can use Turso Docker PHP
- GitHub Sponsors
- Direct Paypal