PHPackages                             js/mysqlnd-analytics - 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. js/mysqlnd-analytics

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

js/mysqlnd-analytics
====================

The JSMysqlndAnalytics library is a library to process statistics collected by PHP's myslqnd module and providing guidance for improving applications using ext/mysql, mysqli or pdo\_mysql.

v1.1.1(12y ago)333.5k2[1 issues](https://github.com/johannes/JSMysqlndAnalytics/issues)1BSD-3-ClausePHPPHP &gt;=5.3.2

Since Mar 31Pushed 12y ago3 watchersCompare

[ Source](https://github.com/johannes/JSMysqlndAnalytics)[ Packagist](https://packagist.org/packages/js/mysqlnd-analytics)[ Docs](https://github.com/johannes/JSMysqlndAnalytics)[ RSS](/packages/js-mysqlnd-analytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

JSMysqlndAnalytics
==================

[](#jsmysqlndanalytics)

The Mysqlnd Analytics library provides a way for an application to easily collect statistics about MySQL operations for a given period by making use of mysqlnd's statistic collection. This library then provides analytics on top of these statistics to help the user to improve his application.

Requirements
------------

[](#requirements)

For making use of this library need an application running on a PHP setup where the mysqli extension is activated and mysqlnd is being used. The mysqli extension is only used to retrieve data. It is no requirement for your application to use to use mysqli. Applications using Doctrine and PDO are fully supported.

This library depends on [rezzza/Formulate](https://github.com/rezzza/Formulate).

Composer
--------

[](#composer)

This library can be installed using composer:

```
$ php composer.phar require "js/mysqlnd-analytics=dev-master"
```

Take a look at [the page on Packagist web site](https://packagist.org/packages/js/mysqlnd-analytics) for more details and up-to-date version numbers.

Usage Example
-------------

[](#usage-example)

A simple use case might llook like this:

```
