Download the PHP package royalcms/elasticsearch without Composer

On this page you can find all versions of the php package royalcms/elasticsearch. 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 elasticsearch

Royalcms-Elasticsearch

在Laravel或Royalcms应用程序中使用 官方Elastic Search客户端 的简便方法。

安装与配置

通过composer安装最新版本的 royalcms/royalcms-elasticsearch 软件包:

通过.env文件的替代配置方法

按照上述建议发布配置文件后,可以配置ElasticSearch 通过将以下内容添加到应用程序的 .env 文件中(具有适当的值):

用法

Elasticsearch 外观只是 ES客户端 的入口点,因此以前您可能使用过:

现在,您可以将后两行替换为:

这将在默认连接上运行命令。 您可以在以下位置运行命令 任何连接(请参见 defaultConnection 设置和 connections 数组 配置文件)。

高级用法

因为该软件包是官方Elastic客户端的包装,所以您可以 使用此程序包几乎可以做任何事情。 您不仅可以执行标准 CRUD操作,但您可以通过编程方式监视弹性集群的运行状况, 备份它,或对其进行更改。 其中一些操作是通过 此程序包愉快地支持的“命名空间”命令。

要获取索引的统计信息:

要创建和还原快照(请首先阅读有关创建存储库路径和插件的Elastic文档):

要删除整个索引(请注意!):

请记住,此软件包是许多非常复杂且有据可查的Elastic功能的薄包装。 有关这些功能以及用于调用它们的方法和参数的信息可以在 Elastic文档 中找到。 可通过 Elastic论坛 以及 Stack Overflow 之类的网站获得有关使用它们的帮助。

Copyright and License

royalcms-elasticsearch was written by Royal Wang and is released under the MIT License.

Copyright (c) 2020 Royal Wang


All versions of elasticsearch with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
elasticsearch/elasticsearch Version ^7.0
illuminate/support Version ^6.0|^7.0|^8.0
illuminate/contracts Version ^6.0|^7.0|^8.0
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 royalcms/elasticsearch contains the following files

Loading the files please wait ....