PHPackages                             orzcc/aliyun-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. orzcc/aliyun-opensearch

ActiveLibrary[API Development](/categories/api)

orzcc/aliyun-opensearch
=======================

Aliyun open search for Laravel5

2.0(7y ago)885321MITPHPPHP ^7.1.3

Since Feb 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/orzcc/aliyun-opensearch)[ Packagist](https://packagist.org/packages/orzcc/aliyun-opensearch)[ Docs](https://github.com/orzcc/aliyun-opensearch)[ RSS](/packages/orzcc-aliyun-opensearch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

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

[](#laravel-aliyun-opensearch)

Aliyun Opensearch bridge for Laravel 5

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

[](#installation)

This package can be installed through Composer.

```
composer require orzcc/aliyun-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.

- `'Orzcc\Opensearch\OpensearchServiceProvider'`

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

- `'Opensearch' => 'Orzcc\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 Orzcc\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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

Unknown

Total

1

Last Release

2662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fcbc9d87e31e6370d6b5f4913850894ef922c16a5276a55c8d43453e146b6e1?d=identicon)[orzcc](/maintainers/orzcc)

---

Top Contributors

[![orzcc](https://avatars.githubusercontent.com/u/402270?v=4)](https://github.com/orzcc "orzcc (12 commits)")[![daids](https://avatars.githubusercontent.com/u/1639998?v=4)](https://github.com/daids "daids (1 commits)")

---

Tags

aliyunlaravelopensearchlaravelopensearchaliyun

### Embed Badge

![Health badge](/badges/orzcc-aliyun-opensearch/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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