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

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

avadim/manticore-query-builder-laravel
======================================

ManticoreSearch Query Builder for your Laravel applications

v1.0.4(3y ago)5233MITPHPPHP ^7.4|^8.1

Since Mar 19Pushed 3y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e8fdde6755d11eb3f86f462ed5c6049439927d43be16c996e61276070a251c06/687474703a2f2f706f7365722e707567782e6f72672f61766164696d2f6d616e7469636f72652d71756572792d6275696c6465722d6c61726176656c2f76)](https://packagist.org/packages/avadim/manticore-query-builder-laravel)[![Total Downloads](https://camo.githubusercontent.com/3a3e5a7e401c9198f55734c6ef1093f135ce6699d496ad8ee8c83d84216115ed/687474703a2f2f706f7365722e707567782e6f72672f61766164696d2f6d616e7469636f72652d71756572792d6275696c6465722d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/avadim/manticore-query-builder-laravel)[![License](https://camo.githubusercontent.com/478bf8f31ca35bc9402f84db03c2a1ac08fc03aea9d9dbe2f58449718b2b437c/687474703a2f2f706f7365722e707567782e6f72672f61766164696d2f6d616e7469636f72652d71756572792d6275696c6465722d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/avadim/manticore-query-builder-laravel)[![PHP Version Require](https://camo.githubusercontent.com/baacdc84163cc8de39dc5d38d83839ab08f3506bf06130beb8992deaff570fff/687474703a2f2f706f7365722e707567782e6f72672f61766164696d2f6d616e7469636f72652d71756572792d6275696c6465722d6c61726176656c2f726571756972652f706870)](https://packagist.org/packages/avadim/manticore-query-builder-laravel)

ManticoreSearch Query Builder for Laravel
=========================================

[](#manticoresearch-query-builder-for-laravel)

An easiest way to use the [ManticoreSearch Query Builder](https://github.com/aVadim483/manticore-query-builder-php)in your Laravel or Lumen applications. This package allows you to build ManticoreSearch queries using a Laravel-like syntax.

```
composer require avadim/manticore-query-builder-laravel
```

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

[](#installation)

### Laravel

[](#laravel)

The package's service provider will automatically register its service provider.

Publish the configuration file:

```
php artisan vendor:publish --provider="avadim\Manticore\Laravel\ServiceProvider"
```

#### Alternative configuration method via .env file

[](#alternative-configuration-method-via-env-file)

After you publish the configuration file as suggested above, you may configure ManticoreSearch by adding the following to your application's `.env` file (with appropriate values):

```
MANTICORE_HOST=localhost
MANTICORE_PORT=9306
MANTICORE_USER=
MANTICORE_PASS=
MANTICORE_TIMEOUT=5
```

#### All available environments variables

[](#all-available-environments-variables)

NameDefault valueDescriptionMANTICORE\_CONNECTIONdefaultName of default connectionMANTICORE\_HOSTlocalhostAddress of host with Manticore serverMANTICORE\_PORT9306Port number with REST serverMANTICORE\_USERUsernameMANTICORE\_PASSPasswordMANTICORE\_TIMEOUT5Timeout between requests### Lumen

[](#lumen)

If you work with Lumen, please register the service provider and configuration in `bootstrap/app.php`:

```
// Enable shortname of facade
$app->withFacades(true, [
    'avadim\Manticore\Laravel\Facade' => 'Facade',
]);

// Register Config Files
$app->configure('manticore');

// Register Service Providers
$app->register(avadim\Manticore\Laravel\ServiceProvider::class);
```

Manually copy the configuration file to your application.

How to use
----------

[](#how-to-use)

```
// Get list of tables via the default connection
$list = \ManticoreDb::showTables();

// Get list of tables via the specified connection
$list = \ManticoreDb::connection('test')->showTables();

\ManticoreDb::table('t')->insert($data);
\ManticoreDb::table('t')->match($match)->where($where)->get();
```

Create a table of ManticoreSearch in Laravel migration

```
use avadim\Manticore\QueryBuilder\Schema\SchemaTable;

class CreateManticoreProductsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        \ManticoreDb::create('products', function (SchemaTable $table) {
            $table->timestamp('created_at');
            $table->string('name');
            $table->text('description');
            $table->float('price');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        \ManticoreDb::table('products')->dropIfExists('users');
    }
}
```

Logging
-------

[](#logging)

You can use logger instance for logging in this package.

```
// Enable logging for all
ManticoreDb::setLogger(\Log::getLogger());

// Enable logging for the specified connection
ManticoreDb::connection('test')->setLogger(\Log::getLogger());

// Enable logging for the next query
ManticoreDb::table('test')->match($match)->where($where)->setLogger(\Log::getLogger())->get();
```

More info about ManticoreSearch Query Builder see in [documentation](https://github.com/aVadim483/manticore-query-builder-php/blob/main/docs/README.md)of the package [avadim/manticore-query-builder-php](https://packagist.org/packages/avadim/manticore-query-builder-php)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

5

Last Release

1155d ago

### 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 (10 commits)")

---

Tags

searchlaraveldatabasesqlquerybuildermanticoresearchmanticoremanticoresoftwarespinxspinxql

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[tpetry/laravel-query-expressions

Database-independent Query Expressions as a replacement to DB::raw calls

357436.5k2](/packages/tpetry-laravel-query-expressions)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)

PHPackages © 2026

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