PHPackages                             tonix-tuft/reactphp-mysql-decorator - 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. tonix-tuft/reactphp-mysql-decorator

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

tonix-tuft/reactphp-mysql-decorator
===================================

A decorator of the ReactPHP MySQL connection interface which augments its behaviour, e.g. providing binding of associative parameters.

v1.8.0(4y ago)4821[2 PRs](https://github.com/tonix-tuft/reactphp-mysql-decorator/pulls)MITPHPPHP ^7.0 || ^8.0

Since May 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/tonix-tuft/reactphp-mysql-decorator)[ Packagist](https://packagist.org/packages/tonix-tuft/reactphp-mysql-decorator)[ RSS](/packages/tonix-tuft-reactphp-mysql-decorator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (14)Used By (0)

ReactPHP MySQL Decorator
========================

[](#reactphp-mysql-decorator)

A decorator of the [ReactPHP MySQL](https://github.com/friends-of-reactphp/mysql) connection interface which augments its behaviour, e.g. providing binding of associative parameters.

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

[](#installation)

Using [Composer](https://getcomposer.org/):

```
composer require tonix-tuft/reactphp-mysql-decorator

```

Usage
-----

[](#usage)

Currently, the only available decorator is `BindAssocParamsConnectionDecorator`, which provides the binding of associative parameters like in standard PHP `PDO` objects.

### BindAssocParamsConnectionDecorator

[](#bindassocparamsconnectiondecorator)

This decorator allows the binding of associative parameters in queries (named parameters). To use it just wrap a `React\MySQL\ConnectionInterface`:

```
