tamayo/laravel-scout-elastic
Larablocks Analysis
tamayo/laravel-scout-elastic works with any PHP project: the latest release (8.1.0, Dec 31, 2021) doesn't depend on Laravel.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: marked abandoned on Packagist.
- Marked abandoned on Packagist
- No release in the last 12 months (last: Dec 31, 2021)
- 1,095 downloads a month (needs 10,000)
- 906 GitHub stars (at least 100)
State
Abandoned- Packagist marks this package abandoned.
- Last stable release: Dec 31, 2021.
- No releases in the last 12 months.
- First released: Sep 29, 2016.
- Monthly downloads: 1,095.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require tamayo/laravel-scout-elastic |
|
| Latest Version: | 8.1.0 |
| PHP: | ^7.2|^8.0|^8.1 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Feb 5, 2023 |
| Links: | GitHub · Packagist |
Laravel Scout Elasticsearch Driver
Archived
I haven't had the time to dedicate work to this repo and I don't plan to do so in the future.
This package provides a Elasticsearch driver for Laravel Scout.
Contents
Installation
You can install the package via composer:
composer require tamayo/laravel-scout-elastic
Laravel will automatically register the driver service provider.
Install elasticsearch-php client
For use this library we recomend using the latest version at this time (^7.9)
composer require elasticsearch/elasticsearch
Setting up Elasticsearch configuration
After you've published the Laravel Scout package configuration, you need to set your driver to elasticsearch and add its configuration:
// config/scout.php
...
// Set your driver to elasticsearch
'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
/*
|--------------------------------------------------------------------------
| Elasticsearch Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your Elasticsearch settings.
|
*/
'elasticsearch' => [
'hosts' => [
env('ELASTICSEARCH_HOST', 'localhost'),
// [
// 'host' => env('ELASTICSEARCH_HOST', 'localhost'),
// 'port' => env('ELASTICSEARCH_PORT', '9200'),
// 'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),
// 'path' => env('ELASTICSEARCH_PATH', '/elastic'),
// 'user' => env('ELASTICSEARCH_USER', 'username'),
// 'pass' => env('ELASTICSEARCH_PASS', 'password'),
// ]
],
]
...
For host configuration you can refer to the official Elasticsearch documentation
Usage
Now you can use Laravel Scout as described in the Laravel Scout official documentation
Limitations
Identifying Users Currrently user identification is not supported.
Credits
License
The MIT License (MIT).
Alternatives to tamayo/laravel-scout-elastic
The official PHP Elasticsearch client integrated with Laravel
Search among multiple models with ElasticSearch and Laravel Scout
Laravel, Lumen and Native php elasticseach query builder to build complex querie...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 8.1.0 | ^7.2| | MIT | ||
| 8.0.3 | ^7.2| | MIT | ||
| 8.0.2 | ^7.2 | MIT | ||
| 8.0.1 | ^7.2 | MIT | ||
| 8.0.0 | ^7.2 | MIT | ||
| 5.0.0 | >=5.6.4 | |||
| 4.0.0 | >=5.6.4 | |||
| 3.0.9 | >=5.6.4 | |||
| 3.0.8 | >=5.6.4 | |||
| 3.0.7 | >=5.6.4 | |||
| 3.0.6 | >=5.6.4 | |||
| 3.0.5 | >=5.6.4 | |||
| 3.0.4 | >=5.6.4 | |||
| 3.0.3 | >=5.6.4 | |||
| 3.0.2 | >=5.6.4 | |||
| 3.0.1 | >=5.6.4 | |||
| 3.0.0 | >=5.6.4 | |||
| 2.0.1 | >=5.6.4 | |||
| 2.0.0 | >=5.6.4 | |||
| 1.0.1 | >=5.6.4 | ^5.3 |