PHPackages                             alapi/hyperf-meilisearch - 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. alapi/hyperf-meilisearch

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

alapi/hyperf-meilisearch
========================

meilisearch for hyperf php

3.1.2(2y ago)61962MITPHPPHP &gt;=8.1

Since Dec 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/anhao/hyperf-meilisearch)[ Packagist](https://packagist.org/packages/alapi/hyperf-meilisearch)[ RSS](/packages/alapi-hyperf-meilisearch/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (13)Versions (8)Used By (0)

hyperf-meilisearch
==================

[](#hyperf-meilisearch)

基于 hyperf scout 的 meilisearch 包

环境要求
----

[](#环境要求)

- hyperf ^2.1
- hyperf scout ^2.1
- guzzlehttp ~7
- meilisearch ^0.29

MeiliSearch
-----------

[](#meilisearch)

`MeiliSearch` 是一个快捷、易用且易部署的全文搜索引擎，支持自定义搜索和索引，支持容错搜索、过滤器和同义词。天生支持中文搜索。同时支持搜索结果词语高亮显示等。相比ElasticSearch，MeiliSearch更加轻量化。 官网地址：

安装
--

[](#安装)

安装这个包的前提是已经安装了 hyperf-scout ，可以查看 hyperf 官方文档查看安装教程

引入组件包

```
composer require alapi/hyperf-meilisearch

```

发布资源，使用 vendor:publish 命令来生成 MeiliSearch 配置文件。这个命令将在你的 config 目录下生成一个 meilisearch.php 配置文件。

```
php bin/hyperf.php vendor:publish alapi/hyperf-meilisearch

```

配置
--

[](#配置)

在生成的 meilisearch.php 里配置你的 host 地址 和 key 秘钥， 然后修改 scout 的配置文件驱动为 meilisearch

在 scout 配置里增加一个meilisearch 引擎

```
return [
    'default' => env('SCOUT_ENGINE',),#修改配置为 meilisearch
    'chunk' => [
        'searchable' => 500,
        'unsearchable' => 500,
    ],
    'prefix' => env('SCOUT_PREFIX', ''),
    'soft_delete' => false,
    'concurrency' => 100,
    'engine' => [
         ...
        'meilisearch' => [ # 增加 meilisearch 引擎
            'driver' => \Alapi\Meilisearch\MeilisearchProvider::class,
        ]
    ],
];
```

配置完成后就可以正常使用了。

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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

Recently: every ~103 days

Total

7

Last Release

776d ago

Major Versions

1.0.1 → 2.0.02022-12-19

2.0.0 → 3.0.02023-03-03

PHP version history (3 changes)1.0.0PHP &gt;=7.4

2.0.0PHP &gt;=8.0

3.1.2PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/22a45c91e7343a20031eb47d6f02fcb59a5a0d5f37936124242cff4730ca5af5?d=identicon)[Alone88](/maintainers/Alone88)

---

Top Contributors

[![anhao](https://avatars.githubusercontent.com/u/9844218?v=4)](https://github.com/anhao "anhao (7 commits)")

---

Tags

phpmeilisearchhyperfalapi

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alapi-hyperf-meilisearch/health.svg)

```
[![Health](https://phpackages.com/badges/alapi-hyperf-meilisearch/health.svg)](https://phpackages.com/packages/alapi-hyperf-meilisearch)
```

###  Alternatives

[hyperf-ext/scout

The Hyperf Scout package.

106.6k](/packages/hyperf-ext-scout)

PHPackages © 2026

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