PHPackages                             mev/console-query-tool - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mev/console-query-tool

ActiveProject[CLI &amp; Console](/categories/cli)

mev/console-query-tool
======================

Console tool wich provide unified interface different database drivers

01PHP

Since Dec 6Pushed 9y agoCompare

[ Source](https://github.com/skip1000/mev-console-query-tool)[ Packagist](https://packagist.org/packages/mev/console-query-tool)[ RSS](/packages/mev-console-query-tool/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Console Query Tool
==================

[](#console-query-tool)

[![Build Status](https://camo.githubusercontent.com/a07898ffbcbd20e6b892878f010069610c61bce4f230531df32e02730e9ae75e/68747470733a2f2f7472617669732d63692e6f72672f736b6970313030302f6d65762d636f6e736f6c652d71756572792d746f6f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/skip1000/mev-console-query-tool)

Application is a simple MongoDB client which works in console end executes SQL statement as native mongo queries.

---

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

[](#requirements)

- php 5.6 or greater
- php-mongodb extension
- unix compatible platform

---

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

[](#installation)

```
composer requires mev/console-query-tool

```

---

Usage
-----

[](#usage)

```
php bin/app.php

```

Available commands:

```
query:execute - Execute SQL query

```

Available options:

```
--host[=HOST]     MongoDB server host [default: "localhost"]
--port[=PORT]     MongoDB server port [default: 27017]
--db=DB           MongoDB database
-h, --help        Display a help message

```

Example

```
php bin/app.php query:execute --db=test "SELECT price, name FROM books WHERE price >=5"

```

---

Supported statements:

- SELECT (without subqueries)
- WHERE
- LIMIT
- ORDER BY

Supported compare operators:

- = - equal
- &lt;&gt; - not equal
- &lt; - less than
- > - greater than
- > = - greater than or equal
- &lt;= - less than or equal

Supported logical operators:

- AND
- OR

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24398622?v=4)[skip1000](/maintainers/skip1000)[@skip1000](https://github.com/skip1000)

---

Top Contributors

[![0legKolomiets](https://avatars.githubusercontent.com/u/5287629?v=4)](https://github.com/0legKolomiets "0legKolomiets (2 commits)")[![skip1000](https://avatars.githubusercontent.com/u/24398622?v=4)](https://github.com/skip1000 "skip1000 (1 commits)")

### Embed Badge

![Health badge](/badges/mev-console-query-tool/health.svg)

```
[![Health](https://phpackages.com/badges/mev-console-query-tool/health.svg)](https://phpackages.com/packages/mev-console-query-tool)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.3k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

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