PHPackages                             khr/react-mysql - 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. khr/react-mysql

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

khr/react-mysql
===============

Asynchronous &amp; non-blocking MySQL driver for React.PHP

v0.0.6(11y ago)75141NonePHPPHP &gt;=5.4.0

Since Apr 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/KhristenkoYura/react-mysql)[ Packagist](https://packagist.org/packages/khr/react-mysql)[ RSS](/packages/khr-react-mysql/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

AsyncMysql
==========

[](#asyncmysql)

Asynchronous &amp; non-blocking MySQL driver for [React.PHP](https://github.com/reactphp/react).

Install
-------

[](#install)

Add this crap to your composer.json:

```
{
  "require": {
    "khr/react-mysql": "*"
  }
}

```

Usage
-----

[](#usage)

Create instance of AsyncMysql and call method `query`. It returns [Promise](https://github.com/reactphp/promise) of [mysqli\_result](http://cz2.php.net/manual/en/class.mysqli-result.php) that will be resolved imediately after query completes.

```
