PHPackages                             atrox/async-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. atrox/async-mysql

ActiveLibrary

atrox/async-mysql
=================

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

43139PHP

Since Feb 10Pushed 8y ago6 watchersCompare

[ Source](https://github.com/kaja47/async-mysql)[ Packagist](https://packagist.org/packages/atrox/async-mysql)[ RSS](/packages/atrox-async-mysql/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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": {
    "atrox/async-mysql": "dev-master"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/kaja47/async-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.

```
