PHPackages                             qmrp/laravel-opensearch - 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. [API Development](/categories/api)
4. /
5. qmrp/laravel-opensearch

ActiveLibrary[API Development](/categories/api)

qmrp/laravel-opensearch
=======================

Aliyun open search for Laravel7

1.2(5y ago)2191MITPHPPHP &gt;=5.4.0

Since Oct 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/qmrp/laravel-opensearch)[ Packagist](https://packagist.org/packages/qmrp/laravel-opensearch)[ Docs](https://github.com/qmrp/laravel-opensearch/)[ RSS](/packages/qmrp-laravel-opensearch/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Laravel Aliyun Opensearch
=========================

[](#laravel-aliyun-opensearch)

Aliyun Opensearch bridge for Laravel 7

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require qmrp/laravel-opensearch
```

Once Opensearch is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'Qmrp\Opensearch\OpensearchServiceProvider'`

You can register the Opensearch facade in the `aliases` key of your `config/app.php` file if you like.

- `'Opensearch' => 'Qmrp\Opensearch\Facades\Opensearch'`

Configuration
-------------

[](#configuration)

Opensearch requires connection configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/opensearch.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are two config options:

##### Default Connection Name

[](#default-connection-name)

This option (`'default'`) is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is `'main'`.

##### Opensearch Connections

[](#opensearch-connections)

This option (`'connections'`) is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like.

Usage
-----

[](#usage)

##### OpensearchManager

[](#opensearchmanager)

This is the class of most interest. It is bound to the ioc container as `'opensearch'` and can be accessed using the `Facades\Opensearch` facade. This class implements the `ManagerInterface` by extending `AbstractManager`. The interface and abstract class are both part of my [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package, so you may want to go and checkout the docs for how to use the manager class over at [that repo](https://github.com/GrahamCampbell/Laravel-Manager#usage). Note that the connection class returned will always be an instance of `CloudsearchSearch`.

##### Facades\\Opensearch

[](#facadesopensearch)

This facade will dynamically pass static method calls to the `'opensearch'` object in the ioc container which by default is the `OpensearchManager` class.

##### OpensearchServiceProvider

[](#opensearchserviceprovider)

This class contains no public methods of interest. This class should be added to the providers array in `config/app.php`. This class will setup ioc bindings.

##### Real Examples

[](#real-examples)

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is `main`. After you enter your authentication and host details in the config file, it will just work:

```
use Qmrp\Opensearch\Facades\Opensearch;
// you can alias this in config/app.php if you like

// Add a new app to search
// $opensearch = Opensearch::connection('main');
// $opensearch = Opensearch::connection('app2');
$opensearch = Opensearch::connection();
$opensearch->setFormat('json');
$opensearch->setQueryString('default:阿里云');

$result = $opensearch->search();
```

The opensearch manager will behave like it is a `CloudsearchSearch` class. If you want to call specific connections, you can do with the `connection` method:

For more information on how to use the `CloudsearchSearch` class we are calling behind the scenes here, check out the docs at [http://docs.aliyun.com/#/opensearch/sdk/php&amp;sdk-doc-cloudsearchsearch](http://docs.aliyun.com/#/opensearch/sdk/php&sdk-doc-cloudsearchsearch), and the manager class at .

License
-------

[](#license)

Laravel Aliyun Opensearch is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

1938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c89b5f9bbcfe00fde88d9b39bb87286fa93ed41e8648f2788f6e3c720b0a4128?d=identicon)[zhouqmrp](/maintainers/zhouqmrp)

---

Top Contributors

[![qmrp](https://avatars.githubusercontent.com/u/10458408?v=4)](https://github.com/qmrp "qmrp (6 commits)")

---

Tags

laravelopensearchaliyun

### Embed Badge

![Health badge](/badges/qmrp-laravel-opensearch/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[vemcogroup/laravel-weather

Weather package for Laravel to use different providers to get weather info

5525.0k](/packages/vemcogroup-laravel-weather)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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