PHP Package: amphp/mysql

Asynchronous MySQL database client library for PHP applications with Amp

Current Version:
Last Updated:
PHP Requirement: >=7.1
Dependencies: amphp/amp, amphp/socket, react/mysql
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/mysql is a high-performance, non-blocking MySQL database client library for PHP applications using Amp. It provides an asynchronous interface for interacting with MySQL databases, allowing for efficient handling of database operations without blocking the event loop. With features like connection pooling, query execution, and result fetching optimized for asynchronous workflows, amphp/mysql is a valuable tool for building scalable and responsive PHP applications.

🔗 View on GitHub

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/amphp/mysql/lib_version/autoload.php';

use Amp\Mysql\Connection;
use Amp\Mysql\ResultSet;
use React\MySQL\Connection;


$obj = new Amp\Mysql\Connection();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.