PHPackages                             shaunfreeman/php-mysql-xdevapi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. shaunfreeman/php-mysql-xdevapi

ActiveLibrary[HTTP &amp; Networking](/categories/http)

shaunfreeman/php-mysql-xdevapi
==============================

PSR-11 library for easy setup of MySQL X DevAPI into Laminas.

2.1.1(5y ago)015[1 issues](https://github.com/shaunfreeman/php-mysql-xdevapi/issues)BSD-3-ClausePHPPHP ^7.3CI failing

Since Sep 26Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (13)Used By (0)

Welcome to PHP MySQL XDevApi
============================

[](#welcome-to-php-mysql-xdevapi)

[![Build Status](https://camo.githubusercontent.com/2359079f93e71a38f9c14274617f0deee26f73e81b9c5b565540cbbeddedc6a4/68747470733a2f2f7472617669732d63692e6f72672f736861756e667265656d616e2f7068702d6d7973716c2d786465766170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shaunfreeman/php-mysql-xdevapi)[![Test Coverage](https://camo.githubusercontent.com/ed6b83f5924f916586a73ce9a1247a26b9b16f0c2857c9b5587a16a9abb4775d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32353665363237373063643365633235623764332f746573745f636f766572616765)](https://codeclimate.com/github/shaunfreeman/php-mysql-xdevapi/test_coverage)[![Maintainability](https://camo.githubusercontent.com/7d1a47ab0b13065c7d0ea849e9738cd44ebfeb91793a102a97487573955115fb/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32353665363237373063643365633235623764332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/shaunfreeman/php-mysql-xdevapi/maintainability)[![Packagist](https://camo.githubusercontent.com/f54bcf07d3c8b8f8ba3261cf6ca9fa1c104e355f633dff2b74ef26934582d41c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736861756e667265656d616e2f7068702d6d7973716c2d786465766170692e737667)](https://packagist.org/packages/shaunfreeman/php-mysql-xdevapi)

This is a [PSR-11](https://www.php-fig.org/psr/psr-11/) library for easy setup of MySQL XDevAPI into [Laminas](https://getlaminas.org/). To use this library you must have the [PECL mysql\_xdevapi](https://pecl.php.net/package/mysql_xdevapi) installed, see  on how to install this extension.

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

[](#installation)

Run the following to install this library:

```
$ composer require shaunfreeman/php-mysql-xdevapi
```

if you haven't got the 'laminas/laminas-component-installer' installed then in your `config/config.php` file add `\XDevApi\ConfigProvider::class` to the ConfigAggregator like:

```
...

$aggregator = new ConfigAggregator([
    \ShaunFreeman\PhpMysqlXdevapi\ConfigProvider::class,
...
```

Configuration
-------------

[](#configuration)

After installing php-mysql-xdevapi, you will need to first enable the component, and then optionally configure it.

We recommend adding a new configuration file to your autoload directory, `config/autoload/xdevapi.local.php`. To begin with, use the following contents:

```
