PHPackages                             venndev/vosaka-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. [Database &amp; ORM](/categories/database)
4. /
5. venndev/vosaka-libsql

ActiveLibrary[Database &amp; ORM](/categories/database)

venndev/vosaka-libsql
=====================

One library support async for all queries database

1.0.2(1mo ago)10MITPHP

Since Mar 10Pushed 1mo agoCompare

[ Source](https://github.com/vosaka-php/vosaka-libsql)[ Packagist](https://packagist.org/packages/venndev/vosaka-libsql)[ RSS](/packages/venndev-vosaka-libsql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Vosaka LibSQL
=============

[](#vosaka-libsql)

**Vosaka LibSQL** is an asynchronous database library for PHP, built on top of the `vosaka-foroutines` ecosystem. It provides fully non-blocking, concurrent database operations with built-in connection pooling for both **MySQL** and **PostgreSQL**.

Features
--------

[](#features)

- **Asynchronous &amp; Non-blocking**: Leverages PHP fibers (via `vosaka-foroutines`) to handle multiple queries concurrently without blocking the main execution thread.
- **Connection Pools**: Built-in efficient connection pooling (`AsyncMysqlPool` and `AsyncPgsqlPool`).
- **Multiple Databases**: First-class support for both MySQL and PostgreSQL.
- **High Performance**: Designed for high-throughput applications requiring vast amounts of concurrent database operations.
- **Type-safe &amp; Modern**: Developed with modern PHP 8 features and strict typing.

Installation
------------

[](#installation)

You can install the library via Composer:

```
composer require venndev/vosaka-libsql
```

*(Note: This library requires the `venndev/vosaka-fourotines` package)*

Usage
-----

[](#usage)

### 1. MySQL Connection Pool

[](#1-mysql-connection-pool)

Here is a quick example of how to use the `AsyncMysqlPool` to run concurrent queries non-blocking:

```
