PHPackages                             jmikola/mongoqp - 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. jmikola/mongoqp

ActiveSilex-application[Database &amp; ORM](/categories/database)

jmikola/mongoqp
===============

MongoQP is a frontend for MongoDB's query profiler collection.

v1.1.1(8y ago)16994522[6 issues](https://github.com/jmikola/mongoqp/issues)[2 PRs](https://github.com/jmikola/mongoqp/pulls)MITJavaScriptPHP &gt;=5.4.0

Since Mar 26Pushed 8y ago17 watchersCompare

[ Source](https://github.com/jmikola/mongoqp)[ Packagist](https://packagist.org/packages/jmikola/mongoqp)[ Docs](https://github.com/jmikola/mongoqp)[ RSS](/packages/jmikola-mongoqp/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

mongoqp
=======

[](#mongoqp)

**mongoqp** is a frontend for MongoDB's [query profiler](https://docs.mongodb.com/manual/tutorial/manage-the-database-profiler/) collections (i.e. `db.system.profile`), built using [Silex](https://silex.sensiolabs.org/) and [MongoDB PHP Library](https://github.com/mongodb/mongo-php-library).

It currently supports:

- Toggling query profiler levels (off, slow, all) per database
- Grouping similar queries by BSON structure
- Reporting aggregate query statistics (min, max, average, times)
- Sorting, pagination and filtering via [DataTables](http://datatables.net/)

Future plans:

- Control over slow query thresholds
- Improving analytics
- Persistent data collection

### Screenshots

[](#screenshots)

[![Server view](https://camo.githubusercontent.com/821f6eadc7441f188723ebef14286ceccedc11e25e55373f3ffc7c7e542ca786/687474703a2f2f692e696d6775722e636f6d2f35455a626d2e706e67)](https://camo.githubusercontent.com/821f6eadc7441f188723ebef14286ceccedc11e25e55373f3ffc7c7e542ca786/687474703a2f2f692e696d6775722e636f6d2f35455a626d2e706e67)

[![Database view](https://camo.githubusercontent.com/8f70aab524dc53fb55f9d8fd91c0579fc1de343590e152b8fa7f06f0a5ec6aeb/687474703a2f2f692e696d6775722e636f6d2f70584c63342e706e67)](https://camo.githubusercontent.com/8f70aab524dc53fb55f9d8fd91c0579fc1de343590e152b8fa7f06f0a5ec6aeb/687474703a2f2f692e696d6775722e636f6d2f70584c63342e706e67)

Setup
-----

[](#setup)

### Installation

[](#installation)

Dependencies are managed with [Composer](http://getcomposer.org/), a PHP package manager. This project is also published as a package, which means it can be installed with:

```
$ composer create-project jmikola/mongoqp

```

### Configuration

[](#configuration)

The `src/` directory includes a `config.php.dist` file, which may be copied to `config.php` and customized. If `config.php` is not present, the default configuration will be included.

Currently, the following options are available:

- `debug`: Enable verbose error reporting
- `mongodb.client.uri`: MongoDB connection URI string
- `mongodb.client.uriOptions`: MongoDB connection URI options
- `mongodb.client.driverOptions`: MongoDB driver options
- `twig.cache_dir`: Cache directory for Twig templates

#### Database Connection

[](#database-connection)

By default, the application will connect to a standalone MongoDB server on the local host (i.e. `new MongoDB\Client`). The connection may be customized via the `mongodb.client` options, like so:

```
$app['mongodb.client.uri'] = 'mongodb://example.com:27017';
```

The above example connects to a standalone server by its hostname. Consult the [MongoDB PHP library documentation](https://docs.mongodb.com/php-library/master/reference/method/MongoDBClient__construct/#examples) for additional examples on connecting to a replica set or specifying auth credentials.

Database profiling cannot be enabled on `mongos` instances. If you are profiling queries in a sharded cluster, the application should be configured to connect to an individual shard.

#### Cache Directory

[](#cache-directory)

By default, the application will use `mongoqp-cache/` within the system's temporary directory. This path, which must be writable, may be customized via the `twig.cache_dir` configuration option.

### Web Server

[](#web-server)

The application can be started using:

```
$ php -S localhost:8080 -t web

```

Instructions for other web server configurations are outlined in the [Silex documentation](https://silex.sensiolabs.org/doc/2.0/web_servers.html).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~790 days

Total

3

Last Release

3262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49096f4052ca788ddf49c82e835125294f460f155885aa3e1ada8c3ff4f4a648?d=identicon)[jmikola](/maintainers/jmikola)

---

Top Contributors

[![jmikola](https://avatars.githubusercontent.com/u/244663?v=4)](https://github.com/jmikola "jmikola (38 commits)")

---

Tags

databaseprofilingmongodb

### Embed Badge

![Health badge](/badges/jmikola-mongoqp/health.svg)

```
[![Health](https://phpackages.com/badges/jmikola-mongoqp/health.svg)](https://phpackages.com/packages/jmikola-mongoqp)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M88](/packages/mongodb-laravel-mongodb)[alcaeus/mongo-php-adapter

Adapter to provide ext-mongo interface on top of mongo-php-library

46312.5M74](/packages/alcaeus-mongo-php-adapter)[facile-it/mongodb-bundle

Bundle service integration of official \[mongodb/mongo-php-library\](https://github.com/mongodb/mongo-php-library) driver library

37225.8k1](/packages/facile-it-mongodb-bundle)[moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

118.5k](/packages/moriony-silex-mongo-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
