Download the PHP package ecode/laravel-scout-opensearch without Composer

On this page you can find all versions of the php package ecode/laravel-scout-opensearch. 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 laravel-scout-opensearch

laravel-scout-opensearch

Laravel Scout 的阿里云 Open Search 驱动。

Installation

建议使用 composer 方式安装此包

composer require ecode/laravel-scout-opensearch

Usage

  1. 在阿里云 OpenSearch 控制台配置:

  2. Laravel 5.5 以下,config/app.php 中添加 service provider

    Ecode\\OpenSearch\\OpenSearchServiceProvider

    Laravel 5.5 及以上,自动加载 service provider,无需手动添加。

  3. 在 scout.php 添加配置:

  4. 修改 .env 配置 scout driver:

    SCOUT_DRIVER=opensearch
  5. 添加 .env Open Search 相关配置:

    OPENSEARCH_ACCESS_KEY=ACCESS_KEY
    OPENSEARCH_ACCESS_SECRET=ACCESS_SECRET
    OPENSEARCH_HOST=HOST
    OPENSEARCH_APP_NAME=APP_NAME
    OPENSEARCH_SUGGEST_NAME=SUGGEST_NAME
    OPENSEARCH_DEBUG=true
    OPENSEARCH_LOG_FILE=opensearch
  6. 项目中使用:
    • 在相应的 model 中引用 use OpenSearchable,本例中以商品模型为例;
    • 在相应的控制器中进行查询 $data = Goods::search("keywords:'test'")->filter(['id','>','0'])->paginate(3)

Desciption:

    Based: https://github.com/ruogoo/laravel-scout-opensearch
    And:   https://github.com/lingxi/ali-opensearch-sdk

All versions of laravel-scout-opensearch with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ~5.4
laravel/scout Version ~6.1.3
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 ecode/laravel-scout-opensearch contains the following files

Loading the files please wait ....