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(2mo ago)1601[1 PRs](https://github.com/Renato27/laravel-manticore-search/pulls)PHPPHP ^8.0

Since May 12Pushed 2mo 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 today

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

42

—

FairBetter than 90% of packages

Maintenance88

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

60d 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

[suenerds/nova-searchable-belongs-to-filter

Searchable Nova filter for belongsTo relationships.

29493.2k](/packages/suenerds-nova-searchable-belongs-to-filter)[klepak/nova-multiselect-filter

Multiselect filter for Laravel Nova

14178.5k2](/packages/klepak-nova-multiselect-filter)[fusic/seaaaaarch

search

1365.0k](/packages/fusic-seaaaaarch)[aginev/search-filters

Easily apply search criteria on Laravel 5+ queries

307.4k](/packages/aginev-search-filters)[whitecube/laravel-search-builder

A package to build fast, index-friendly search queries for Laravel

266.9k](/packages/whitecube-laravel-search-builder)[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)
