Download the PHP package flyokai/laminas-db-driver-async without Composer

On this page you can find all versions of the php package flyokai/laminas-db-driver-async. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laminas-db-driver-async

flyokai/laminas-db-driver-async

User docs → AGENTS.md

Two-strategy async database driver for Laminas DB: AsyncPdo (AMPHP worker pools, process-isolated) and AsyncMysqli (Revolt event loop + MYSQLI_ASYNC, in-process cooperative).

Pick whichever fits your workload — both implement Laminas DB's DriverInterface. AsyncMysqli is the default ConnectionPool in Flyokai.

Features

Installation

When to use which

Aspect AsyncPdo AsyncMysqli
Isolation Strong (separate processes) Weak (same process)
Overhead Higher (serialization, IPC) Lower (in-process)
Statements True server-side prepared Client-side parameter interpolation
Scalability CPU-bound work I/O-bound work
Transactions Full nesting via level tracking Basic begin/commit/rollback
Fiber-aware state FiberLocal Implicit via the event loop

AsyncPdo

Architecture

Quick start

PdoTask operations: connect, execute, prepare, statement:execute, statement:fetch, statement:fetchAll, … each routes to a cached PDO/PDOStatement in the worker via spl_object_id().

AsyncMysqli

Architecture

Quick start

The Connection delegates to ParentConnection for raw mysqli operations and adds queryWithRetry():

Parameter binding

There are no prepared statements — parameters are interpolated client-side via Platform::quoteValue(). Named parameters are sorted by length (longest first) to avoid partial replacement.

In Flyokai

AsyncMysqliConnectionPool is the default ConnectionPool configured via the DI alias in the application's diconfig.php. Switch to AsyncPdoConnectionPool or AmpConnectionPool by overriding the alias.

Gotchas

See also

License

MIT


All versions of laminas-db-driver-async with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
amphp/amp Version ^3.0.2
amphp/parallel Version ^2.3.1
laminas/laminas-db Version ^2.5
flyokai/revolt-event-loop Version ^1
ext-pdo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flyokai/laminas-db-driver-async contains the following files

Loading the files please wait ...