PHPackages                             avadim/manticore-query-builder-php - 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. avadim/manticore-query-builder-php

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

avadim/manticore-query-builder-php
==================================

Manticore Search Query Builder for PHP (unofficial PHP client)

v1.15.0(1y ago)71.7k↑566.7%21MITPHPPHP ^7.4|^8.1

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aVadim483/manticore-query-builder-php)[ Packagist](https://packagist.org/packages/avadim/manticore-query-builder-php)[ Docs](https://github.com/aVadim483/manticore-query-builder-php)[ RSS](/packages/avadim-manticore-query-builder-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (1)

[![GitHub Release](https://camo.githubusercontent.com/fd6fcaaea37abbf4e4960806210a7e207eb6f7c802a6efc937f79b8a52f0502e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f61566164696d3438332f6d616e7469636f72652d71756572792d6275696c6465722d706870)](https://packagist.org/packages/avadim/manticore-query-builder-php)[![Packagist Downloads](https://camo.githubusercontent.com/40d48999e5bf4e175fbb529a20c80dc350fe26ad15826933ad9cc8956bd41300/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61766164696d2f6d616e7469636f72652d71756572792d6275696c6465722d7068703f636f6c6f723d253233616130306161)](https://packagist.org/packages/avadim/manticore-query-builder-php)[![GitHub License](https://camo.githubusercontent.com/e61daf21c591c9cd763ed05348686ddab5e5b350a1beecb78736a71226b8c15f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61566164696d3438332f6d616e7469636f72652d71756572792d6275696c6465722d706870)](https://packagist.org/packages/avadim/manticore-query-builder-php)[![Static Badge](https://camo.githubusercontent.com/ec4898b6661c3fb76d8f5675d6e4162b05a524b1da30c719f4aaa7e15bc8d877/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d303035666337)](https://packagist.org/packages/avadim/manticore-query-builder-php)

Manticore Search Query Builder for PHP (unofficial PHP client)
==============================================================

[](#manticore-search-query-builder-for-php-unofficial-php-client)

Query Builder for Manticore Search in PHP with Laravel-like syntax

Features

- MySQL multiple connections via PDO (because Manticore is SQL-first)
- Placeholders as prefix in table names
- Named parameters in expressions
- Clear Laravel-like syntax
- Multiple INSERT and REPLACE
- Support MATCH() and multi-level WHERE for SELECT
- Support faceted search

More detail documentation is available in [/docs](/docs/README.md) folder. Manticore Search server documentation:

Quick start guide
-----------------

[](#quick-start-guide)

```
use avadim\Manticore\QueryBuilder\Builder as ManticoreDb;

// Define config
$config = [
    'defaultConnection' => 'default',
    'connections' => [
        // Default connection which will be used with environment variables
        'default' => [
            'host' => 'localhost',
            'port' => 9306,
            'username' => null,
            'password' => null,
            'timeout' => 5,
            'prefix' => 'test_', // prefix that will replace the placeholder "?"
            'force_prefix' => false,
        ],
    ],
];

// Init query builder
ManticoreDb::init($config);

// Create table
ManticoreDb::create('?products', function (SchemaTable $table) {
    $table->timestamp('created_at');
    $table->string('manufacturer');
    $table->text('title');
    $table->json('info');
    $table->float('price');
    $table->multi('categories');
    $table->bool('on_sale');
});

// Insert single row
$singleRow = [
    'created_at' => time(),
    'manufacturer' => 'Samsung',
    'title' => 'Galaxy S23 Ultra',
    'info' => ['color' => 'Red', 'storage' => 512],
    'price' => 1199.00,
    'categories' => [5, 7, 11],
    'on_sale' => true,
];
$res = ManticoreDb::table('?products')->insert($singleRow);
// $res->result() =>  of the new record

// Insert multiple rows
$multipleRows = [
    [
        'created_at' => time(),
        'manufacturer' => '...',
        'title' => '...',
        'info' => [],
        // ...
    ],
    [
        'created_at' => time(),
        'manufacturer' => '...',
        'title' => '...',
        'info' => [],
        // ...
    ],
];
$res = ManticoreDb::table('?products')->insert($multipleRows);
// $res->result() => array of  of new records

$rows = ManticoreDb::table('?products')->match('galaxy')->where('price', '>', 1100)->get();
```

Documentation
-------------

[](#documentation)

More detail documentation is available in [/docs](/docs/README.md) folder.

Want to support?
----------------

[](#want-to-support)

if you find this package useful just give me a star on [GitHub](https://github.com/aVadim483/manticore-query-builder-php) :)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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 ~39 days

Recently: every ~135 days

Total

15

Last Release

611d ago

Major Versions

0.91 → 1.00b2023-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdb51a3c707497a4cc826ec61af31a3f33f2a372d8245e1d17a51be913d1c916?d=identicon)[avadim](/maintainers/avadim)

---

Top Contributors

[![aVadim483](https://avatars.githubusercontent.com/u/2246758?v=4)](https://github.com/aVadim483 "aVadim483 (28 commits)")

---

Tags

searchdatabasesqlquerybuildermanticoresearchmanticoremanticoresoftwarespinxspinxql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avadim-manticore-query-builder-php/health.svg)

```
[![Health](https://phpackages.com/badges/avadim-manticore-query-builder-php/health.svg)](https://phpackages.com/packages/avadim-manticore-query-builder-php)
```

###  Alternatives

[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[opis/database

A database abstraction layer over PDO, that provides a powerful and intuitive query builder, bundled with an easy to use schema builder

10184.2k3](/packages/opis-database)[krzysztof-gzocha/searcher

Searcher is a framework-agnostic search query builder. Search queries are written using Criterias and can be run against MySQL, MongoDB, ElasticSearch or even files.

11861.6k1](/packages/krzysztof-gzocha-searcher)[bentools/where

PHP7.1 Fluent, immutable SQL query builder. Connectionless, framework-agnostic, no dependency.

125.2k2](/packages/bentools-where)[chillerlan/php-database

An extensible database wrapper and query builder.

431.2k2](/packages/chillerlan-php-database)

PHPackages © 2026

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