Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Turso Client Http

Turso Client Http Laravel Package

darkterminal/turso-client-http

A lightweight HTTP client for Turso/libSQL built for PHP and Laravel. Query remote Turso databases over HTTP without native extensions, using a simple, expressive API for raw SQL, migrations, and everyday database operations.

View on GitHub
Deep Wiki
Context7

The PHP library for Turso over HTTP

Frequently asked questions about Turso Client Http
What is darkterminal/turso-client-http used for?
darkterminal/turso-client-http is a lightweight HTTP client for querying remote Turso/libSQL databases from PHP. It is designed for raw SQL and everyday database operations without requiring native extensions. In Laravel, it is most useful for isolated services, serverless or edge endpoints, reporting jobs, and other bounded contexts rather than as a replacement for Eloquent.
How do I install darkterminal/turso-client-http in a Laravel app?
Install it with Composer using composer require darkterminal/turso-client-http. Then configure your Turso database URL and authentication token according to the package documentation. In Laravel, wrap the client in a service provider or bind it in the container so configuration stays centralized and testable.
Does darkterminal/turso-client-http work with Laravel Eloquent?
No. It is a low-level HTTP client for Turso, not a Laravel database connector or PDO driver. It does not plug into Eloquent models, relationships, the query builder, or Laravel's schema and transaction abstractions. Using Eloquent would require building a custom connector or refactoring data access to raw SQL.
Which Laravel and PHP versions does this Turso HTTP client support?
The assessment notes that compatibility with current Laravel and PHP versions is unproven. Check the package's Composer constraints and its HTTP client dependencies before adopting it. Run a proof of concept on your target Laravel and PHP versions, including TLS, token auth, and error handling.
Can I run migrations and schema changes with this package?
The package can execute raw SQL, so you can issue CREATE, ALTER, and other schema statements through Turso's HTTP API. It does not provide Laravel migrations, the schema builder, or a database driver integration. For Laravel-managed migrations, you would need a separate migration strategy or custom tooling.
Does it support transactions and batched SQL statements?
Transaction and batch behavior is not guaranteed by a low-level HTTP client and depends on what the Turso HTTP API and this package expose. Do not assume Eloquent-style transaction semantics. Test batched statements, rollback behavior, and consistency across replicas before relying on them in production.
How should I handle Turso auth tokens and security in Laravel?
Store the Turso auth token in environment variables or a secrets manager, not in source control. Use TLS, avoid logging tokens, and plan a rotation process because HTTP clients often send credentials on every request. Validate how the package handles authentication errors and whether it supports retries without leaking sensitive headers.
How do I test a Turso HTTP client before using it in production?
Start with a time-boxed proof of concept against a non-production Turso database. Test raw SQL execution, schema changes, timeouts, rate limits, auth failures, and replica consistency, and mock HTTP responses where possible for fast unit tests. Measure latency and error rates before integrating a non-critical feature.
What are the production risks of using Turso over HTTP instead of PDO SQLite?
HTTP transport adds latency, timeout and rate-limit failure modes, and different transaction and consistency behavior compared with local PDO SQLite. You also take on token security, retry policy, and package maintenance risk. The assessment recommends keeping core transactional workloads on your existing database and using Turso over HTTP for bounded or read-heavy use cases.
Is darkterminal/turso-client-http actively maintained, and what alternatives exist?
The package has limited community validation, with 49 stars and a low score, so single-maintainer and maintenance gaps are real risks. If you adopt it beyond a prototype, plan to vendor or fork it and assign internal ownership for security patches and compatibility. For alternatives, evaluate official Turso/libSQL tooling, native PDO SQLite, or a supported Laravel database driver; for Eloquent-heavy apps, a custom connector is a substantial project.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource