Download the PHP package shift31/laravel-elasticsearch without Composer

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

Laravel Elasticsearch Service Provider (4.5.0)

Latest Stable Version Total Downloads Build Status Coverage Status License

This is a Laravel (4.2) Service Provider for the official Elasticsearch low-level client.

Version Matrix

Since there are breaking changes in Elasticsearch versions, your version of Elasticsearch must match the version of this library, which matches the version of the Elasticsearch low-level client.

Shift31/laravel-elasticsearch Elasticsearch Laravel
0.4 <= 0.90.* 4.2
1.0, 2.0 >= 1.0 4.x, 5.x
4.0 <= 0.90.* 4.2
4.1 >= 1.0 <= 2.0 4.2
4.2 >= 2.0 <= 5.0 4.2
4.5 >= 5.0 4.2
5.0 <= 0.90.* 5.x
5.1 >= 1.0 <= 2.0 5.x
5.2 >= 2.0 <= 5.0 5.x
5.5 >= 5.0 5.x

Attention: Until we launch new versions please keep using old stable versions (which are created as a branch) and don't use dev-master branch!

Usage

  1. Run composer require shift31/laravel-elasticsearch:~4.5.0

  2. Publish config file

Laravel artisan command

You can always read config parameters with:

Note: The keys of this array should be named according the parameters supported by Elasticsearch\ClientBuilder.

  1. In the 'providers' array in app/config/app.php, add 'Shift31\LaravelElasticsearch\ElasticsearchServiceProvider'.

  2. Use the Es facade to access any method from the Elasticsearch\Client class, for example:

Default Configuration

If you return an empty array in the config file, Service provider merges default config with custom config variables. For custom config file question please see this elastic search configuration page.

Default config file which is publishing by artisan command.

Contributing

Please see CONTRIBUTING.md.


All versions of laravel-elasticsearch with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
laravel/framework Version ~4.2.0
elasticsearch/elasticsearch Version ~5.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 shift31/laravel-elasticsearch contains the following files

Loading the files please wait ....