PHPackages                             psagnataf/laravel-manticoresearch - 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. psagnataf/laravel-manticoresearch

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

psagnataf/laravel-manticoresearch
=================================

An easy way to use the official ManticoreSearch client in your Laravel applications

1.4.0(5y ago)0488MITPHPPHP ^7.2

Since Jun 8Pushed 5y agoCompare

[ Source](https://github.com/PsagnatAF/laravel-manticoresearch)[ Packagist](https://packagist.org/packages/psagnataf/laravel-manticoresearch)[ Docs](https://github.com/EvilFreelancer/laravel-manticoresearch)[ RSS](/packages/psagnataf-laravel-manticoresearch/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ae42ab49e69ae03eb8c4e8d65202e1e297c4c32bd5bae0284d624bfc3256c4fc/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f762f737461626c65)](https://packagist.org/packages/evilfreelancer/laravel-manticoresearch)[![Total Downloads](https://camo.githubusercontent.com/425e2cd914e3f14f086df605e94e2de380fbb41dd2c279375fbcdadb6520ec0a/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f646f776e6c6f616473)](https://packagist.org/packages/evilfreelancer/laravel-manticoresearch)[![Build Status](https://camo.githubusercontent.com/e7a4d40ff1d2c543d0bd4ed94dc742755d4423620aced810d8e0fbb3ffd83d28/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4576696c467265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/EvilFreelancer/laravel-manticoresearch/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/331dd994653240c8634da6c6923b0ab72d4346320af62b61b8f4bf97793550d2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4576696c467265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/EvilFreelancer/laravel-manticoresearch/?branch=master)[![Code Climate](https://camo.githubusercontent.com/a89997c830c55f96f0534a49ed01b00bec9975c64171d3694ce15143d24947a8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4576696c467265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f6261646765732f6770612e737667)](https://codeclimate.com/github/EvilFreelancer/laravel-manticoresearch)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d4a5cbbf2945496c13177362b0b67ad0298b28066a187b7e46eba299cc1ef5c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4576696c467265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/EvilFreelancer/laravel-manticoresearch/?branch=master)[![License](https://camo.githubusercontent.com/ac6a4e4494525ac42c55e32a4357981a612a77bc2a2ab4653b743f54c1af1f85/68747470733a2f2f706f7365722e707567782e6f72672f6576696c667265656c616e6365722f6c61726176656c2d6d616e7469636f72657365617263682f6c6963656e7365)](https://packagist.org/packages/evilfreelancer/laravel-manticoresearch)

Laravel ManticoreSearch plugin
==============================

[](#laravel-manticoresearch-plugin)

An easy way to use the [official ManticoreSearch client](https://github.com/manticoresoftware/manticoresearch-php) in your Laravel or Lumen applications.

```
composer require psagnataf/laravel-manticoresearch
```

### Laravel

[](#laravel)

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

Publish the configuration file:

```
php artisan vendor:publish --provider="ManticoreSearch\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):

```
MANTICORESEARCH_HOST=localhost
MANTICORESEARCH_PORT=9200
MANTICORESEARCH_TRANSPORT=Http
MANTICORESEARCH_USER=
MANTICORESEARCH_PASS=
```

### Lumen

[](#lumen)

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

```
$app->register(ManticoreSearch\Laravel\ServiceProvider::class);
$app->configure('manticoresearch');
```

Manually copy the configuration file to your application.

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

[](#how-to-use)

The `ManticoreSearch` facade is just an entry point into the [ManticoreSearch client](https://github.com/manticoresoftware/manticoresearch-php), so previously you might have used:

```
require_once __DIR__ . '/vendor/autoload.php';

$config = ['host'=>'127.0.0.1', 'port'=>9308];
$client = new \Manticoresearch\Client($config);
$index = new \Manticoresearch\Index($client);
$index->setName('movies');
```

Instead of these few lines above you can use single line solution:

```
$index = ManticoreSearch::index('movies');
```

That will run the command on the default connection. You can run a command on any connection (see the `defaultConnection` setting and `connections` array in the configuration file).

```
$index = ManticoreSearch::connection('connectionName')->index($nameOfIndex);
$pq = ManticoreSearch::connection('connectionName')->pq();
$cluster = ManticoreSearch::connection('connectionName')->cluster();
$indices = ManticoreSearch::connection('connectionName')->indices();
$nodes = ManticoreSearch::connection('connectionName')->nodes();

// etc...
```

methods of Client class:

```
ManticoreSearch::connection('connectionName')->sql($params);
ManticoreSearch::connection('connectionName')->replace($params);
ManticoreSearch::connection('connectionName')->delete($params);

// etc...
```

Lumen users who aren't using facades will need to use dependency injection, or the application container in order to get the ManticoreSearch Index object:

```
// using injection:
public function handle(\ManticoreSearch\Laravel\Manager $manticoresearch)
{
    $manticoresearch->describe();
}

// using application container:
$manticoreSearch = $this->app('manticoresearch');
```

Of course, dependency injection and the application container work for Laravel applications as well.

All available environments variables
------------------------------------

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

NameDefault valueDescriptionMANTICORESEARCH\_CONNECTIONdefaultName of default connectionMANTICORESEARCH\_HOSTlocalhostAddress of host with Manticore serverMANTICORESEARCH\_PORT9308Port number with REST serverMANTICORESEARCH\_TRANSPORTHttpType of transport, can be: Http, Https, PhpHttp or your custom driverMANTICORESEARCH\_USERUsernameMANTICORESEARCH\_PASSPasswordMANTICORESEARCH\_TIMEOUT5Timeout between requestsMANTICORESEARCH\_CONNECTION\_TIMEOUT1Timeout before connectionMANTICORESEARCH\_PROXYUrl of HTTP proxy serverMANTICORESEARCH\_PERSISTENTtrueDefine whenever connection is persistent or notMANTICORESEARCH\_RETRIES2Amount of retries if connection is lostLinks
-----

[](#links)

-
-

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.6% 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 ~53 days

Total

3

Last Release

2108d ago

Major Versions

0.9 → 1.0.02020-07-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29681906?v=4)[Andrii Kovtun](/maintainers/PsagnatAF)[@PsagnatAF](https://github.com/PsagnatAF)

---

Top Contributors

[![EvilFreelancer](https://avatars.githubusercontent.com/u/9089568?v=4)](https://github.com/EvilFreelancer "EvilFreelancer (35 commits)")[![PsagnatAF](https://avatars.githubusercontent.com/u/29681906?v=4)](https://github.com/PsagnatAF "PsagnatAF (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/psagnataf-laravel-manticoresearch/health.svg)

```
[![Health](https://phpackages.com/badges/psagnataf-laravel-manticoresearch/health.svg)](https://phpackages.com/packages/psagnataf-laravel-manticoresearch)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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