Download the PHP package mabadir/elastic-laravel without Composer

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

elastic-laravel

Latest Version on Packagist Quality Score Total Downloads

Elastic Search Indexer for Laravel 5.

Structure

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

Install

Via Composer

Usage

Add the ElasticLaravelServiceProvider to your config/app.php.

Publish the elastic.php to your configuration.

Add the ElasticEloquent trait to your Eloquent model to have it indexed.

For searching the index, you can run search with different approaches. The first step is to add the Facade to your config/app.php:

  1. Simple term search:

  2. Simple term search on specific model type:

This will search the Elastic Search index for the simple term with type=users.

  1. Search index on specific parameter:

This will search the complete Search Index for the parameter name with value First Name

  1. Search index on specific parameter and specific model type:

This will search the Search Index for the parameter name with value First Name on type=users.

  1. Advanced Search:

This exposes the complete Elastic Search powerful query DSL interface, this will accept any acceptable Elastic Search DSL query.

  1. Advanced Search:

This will search the index using the advanced query for type=users.

For the different functions, the class name can be used instead of the object itself, the object or the class should be extending Eloquent Model class \Illuminate\Database\Eloquent\Model. For example:

ElasticSearch Indexing Console Command

By default the package provides a default index initialization command:

The default command will initialize the index with very basic settings. If it is required to initialize the index with more advanced settings and custom mappings: Create a new Console Command in your application:

Import the IndexInitializationTrait class, and overload the $params attribute:

For more details on the configuration parameters, check the official ElasticSearch documentation.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Contributing

Please see CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of elastic-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ~5.6|~7.0
elasticsearch/elasticsearch Version ^5.1
illuminate/support Version ~5.1
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 mabadir/elastic-laravel contains the following files

Loading the files please wait ....