darkterminal/turso-php-installer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

darkterminal/turso-php-installer

Composer 安装命令:

composer require darkterminal/turso-php-installer

包简介

Turso libSQL Extension PHP Installer

README 文档

README

Shows a black logo in light color mode and a white one in dark color mode.

Turso PHP Installer

This is the Turso/libSQL Extension for PHP installer script for Linux and MacOS. Make sure you already have PHP minimal version 8.3.

Installation

composer global require darkterminal/turso-php-installer

Laravel Sail

Copy and Paste the stubs from here

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 & Overview

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:delete               Delete a database token
token:list                 Display all generated database tokens
token:show                 Show libSQL Server Database token for Local Development

Unix Only Command

server:ca-cert-create      Generate CA certificate
server:ca-cert-delete      Delete a CA certificate from the global store location
server:ca-cert-list        List all generated CA certificates
server:ca-cert-show        Show raw CA certificate and private key
server:ca-peer-cert-create Create a peer certificate
server:cert-store-get      Get the cert store location
server:cert-store-set      Set/overwrite global certificate store, to use by the server later. Default is same as {installation_dir}/certs
server:check               Check server requirement, this will check if python3 pip and cyptography lib are installed

sqld:env-delete            Delete an environment by name or ID
sqld:env-edit              Edit an existing environment by ID or name
sqld:env-list              List all created environments
sqld:env-new               Create new sqld environment, save for future use.
sqld:env-show              Show detail of environment
sqld:open-db               Open database using Turso CLI based on environment id or name and database
sqld:server-run            Run sqld server based on environment id or name

Install Extension

Interactive Mode

turso-php-installer install

Non Interactive Mode

PHP NTS (Non Thread-Safe) Build

By default the installer will install the stable version of libSQL Client from tursodatabase/turso-client-php release with NTS (Non Thread-Safe) build version.

turso-php-installer install -n --php-vesion=8.3 --php-ini=/etc/php/<version>/cli/php.ini --extension-dir=/path/to/your-custom/extensions/directory

But, if you want to use the unstable version (which is the development) version of libSQL Client, the installer will install from another source pandanotabear/turso-client-php release with NTS (Non Thread-Safe) build version. (Btw, Panda is my another pet in GitHub)

turso-php-installer install -n --unstable --php-vesion=8.3 --php-ini=/etc/php/<version>/cli/php.ini --extension-dir=/path/to/your-custom/extensions/directory

PHP TS (Thread-Safe) Build

Stable version build - libSQL Client from tursodatabase/turso-client-php release with TS (Thread-Safe) build version.

turso-php-installer install -n --thread-safe --php-vesion=8.3 --php-ini=/etc/php/<version>/cli/php.ini --extension-dir=/path/to/your-custom/extensions/directory

Unstable version build - libSQL Client, the installer will install from another source pandanotabear/turso-client-php release with NTS (Non Thread-Safe) build version.

turso-php-installer install -n --unstable --thread-safe --php-vesion=8.3 --php-ini=/etc/php/<version>/cli/php.ini --extension-dir=/path/to/your-custom/extensions/directory

See turso-php-installer install --help

Uninstall Extension

turso-php-installer uninstall

Update Extension

turso-php-installer update

Using Local LibSQL for Development

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

See detail explanation

FAQ

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

Give Me a Coffe

  • GitHub Sponsors
  • Direct Paypal

darkterminal/turso-php-installer 适用场景与选型建议

darkterminal/turso-php-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.99k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2024 年 09 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 darkterminal/turso-php-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 darkterminal/turso-php-installer 我们能提供哪些服务?
定制开发 / 二次开发

基于 darkterminal/turso-php-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 14
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-15