Download the PHP package augustdai/hyperf-scout-meilisearch without Composer

On this page you can find all versions of the php package augustdai/hyperf-scout-meilisearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hyperf-scout-meilisearch

hyperf-scout-meilisearch

[目录]

简介

本扩展包为 Hyperf 框架提供了类似 Laravel Scout 的 Meilisearch 集成,支持文档索引、搜索、批量更新和批量同步索引设置等。

环境要求

安装

配置

config/autoload/scout.php

.env

Model 配置

注意:getScoutKeyName 必须重写。 Hyperf 默认实现返回 table.column 格式(含点号),而 Meilisearch 不支持以点号作为主键字段名。

Hyperf 协程环境下的 MeilisearchProvider

在 Hyperf 协程(Swoole/Swow)环境中,Guzzle 的默认 curl handler 不是协程安全的,高并发导入时会出现 cURL error 0: unable to rewind body 错误。需要使用 Hyperf 提供的 HandlerStackFactory 替换默认 handler:

使用

建立索引(首次使用)

同步索引设置

同步 index-settings 中配置的 filterable/sortable/searchable 字段,无需传入模型名

全量导入数据

大数据量快速导入(推荐):

通过 --chunk 参数增大每批条数,配合 scout.concurrency 提升并发,可显著缩短导入时间。

性能参考:

concurrencyconfig/autoload/scout.phpconcurrency 字段配置。

后台运行并记录日志:

删除索引数据

删除索引

搜索

详见 hyperf scout 官方文档:https://hyperf.wiki/3.1/#/zh-cn/scout

注意事项

License

MIT


All versions of hyperf-scout-meilisearch with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.9
http-interop/http-factory-guzzle Version ^1.0
hyperf/scout Version ^3.1
meilisearch/meilisearch-php Version ^1.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package augustdai/hyperf-scout-meilisearch contains the following files

Loading the files please wait ...