PHPackages                             renatomaldonado/manticore-laravel-search - 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. [Search &amp; Filtering](/categories/search)
4. /
5. renatomaldonado/manticore-laravel-search

ActiveLibrary[Search &amp; Filtering](/categories/search)

renatomaldonado/manticore-laravel-search
========================================

Laravel driver for Manticore Search using the official PHP client

v1.1.4(3mo ago)1601[1 PRs](https://github.com/Renato27/laravel-manticore-search/pulls)PHPPHP ^8.0

Since May 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Renato27/laravel-manticore-search)[ Packagist](https://packagist.org/packages/renatomaldonado/manticore-laravel-search)[ RSS](/packages/renatomaldonado-manticore-laravel-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Laravel Manticore Search
========================

[](#laravel-manticore-search)

A powerful integration of [Manticore Search](https://manticoresearch.com/) with Laravel, offering a fluent query builder and Eloquent-style API for full-text search and filtering.

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

[](#installation)

```
composer require renatomaldonado/laravel-manticore-search
```

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --provider="ManticoreLaravel\ManticoreServiceProvider"
```

Then edit `config/manticore.php`:

```
return [
    'host' => env('MANTICORE_HOST', '127.0.0.1'),
    'port' => env('MANTICORE_PORT', 9306),
    'password' => env('MANTICORE_PASSWORD', null),
    'username' => env('MANTICORE_USERNAME', null),
    'transport' => env('MANTICORE_TRANSPORT', 'http'),
    'timeout' => env('MANTICORE_TIMEOUT', 5),
    'persistent' => env('MANTICORE_PERSISTENT', false),
];
```

Model Setup
-----------

[](#model-setup)

Extend your Eloquent model with the `HasManticoreSearch` trait and define the `searchableAs()` method:

```
use ManticoreLaravel\Traits\HasManticoreSearch;

class Company extends Model
{
    use HasManticoreSearch;

    public function searchableAs(): array
    {
        return ['companies_index_1', 'companies_index_2'];
    }
}
```

Basic Usage
-----------

[](#basic-usage)

### Match and Filter

[](#match-and-filter)

```
Company::manticore()
    ->match('technology')
    ->where('country', 'US')
    ->limit(10)
    ->get();
```

### Operators

[](#operators)

```
Company::manticore()
    ->where('employees', '>=', 50)
    ->whereBetween('revenue', [10000, 50000])
    ->get();
```

### Pagination

[](#pagination)

```
Company::manticore()
    ->match('startup')
    ->paginate(15);
```

### Aggregations (Facets)

[](#aggregations-facets)

```
Company::manticore()
    ->aggregate('sectors', [
        'terms' => [
            'field' => 'sector',
            'size' => 5
        ]
    ])
     ->getFacets();
```

### Sorting

[](#sorting)

```
Company::manticore()
    ->orderBy('created_at', 'desc')
    ->get();
```

### Grouping

[](#grouping)

```
Company::manticore()
    ->groupBy('country')
    ->get();
```

### Having

[](#having)

```
Company::manticore()
    ->select(['country', 'COUNT(*) as total'])
    ->groupBy('country')
    ->having("COUNT(*) > 1")
    ->get();
```

### Geo Distance

[](#geo-distance)

```
Company::manticore()
    ->whereGeoDistance('location', 40.4168, -3.7038, 10000)
    ->get();
```

### Raw SQL

[](#raw-sql)

```
Company::manticore()
    ->rawQuery("SELECT * FROM companies_index WHERE country = 'US'")
    ->get();
```

### Convert to SQL

[](#convert-to-sql)

```
Company::manticore()
    ->match('ai')
    ->where('country', 'UK')
    ->toSql();
```

Testing
-------

[](#testing)

The package includes a full PHPUnit test suite. To run it:

```
./vendor/bin/phpunit
```

Make sure your Manticore server is running and your test indexes are populated.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance79

Regular maintenance activity

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~25 days

Total

11

Last Release

112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8c005ae29c801cf6a93548c4d4abf8a795b74fed3433a772ae7a9b4f048bbe8?d=identicon)[Renato Maldonado](/maintainers/Renato%20Maldonado)

---

Top Contributors

[![bgrou](https://avatars.githubusercontent.com/u/61094081?v=4)](https://github.com/bgrou "bgrou (6 commits)")[![Renato27](https://avatars.githubusercontent.com/u/54475563?v=4)](https://github.com/Renato27 "Renato27 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/renatomaldonado-manticore-laravel-search/health.svg)

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

###  Alternatives

[romanstruk/manticore-scout-engine

Laravel Manticore Scout Engine

4818.1k](/packages/romanstruk-manticore-scout-engine)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

16179.1k](/packages/pos-lifestyle-laravel-nova-date-range-filter)[omure/scout-advanced-meilisearch

Laravel Scout extension that allows to use meilisearch advanced features as well as has an extended collection driver for testing purposes.

123.9k](/packages/omure-scout-advanced-meilisearch)

PHPackages © 2026

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