Download the PHP package jeremy379/elasticsearch without Composer
On this page you can find all versions of the php package jeremy379/elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeremy379/elasticsearch
More information about jeremy379/elasticsearch
Files in jeremy379/elasticsearch
Package elasticsearch
Short Description An Elasticsearch implementation of Laravel's Eloquent ORM
License MIT
Homepage https://github.com/jeremy379/elasticsearch
Informations about the package elasticsearch
[!NOTE] ⚠️ This package is no longer needed. The original author David Philip has returned and the package is back under active maintenance on GitLab. Please use the official package instead:
- Package:
composer require pdphilip/elasticsearch- Documentation: elasticsearch.pdphilip.com
- Repository:
pdphilip/laravel-elasticsearchThis repository was created as a temporary mirror when the original returned a 404. It will be archived shortly.
<img src="https://cdn.snipform.io/pdphilip/elasticsearch/laravel-es-banner.png" alt="Laravel Elasticsearch" />
Laravel-Elasticsearch
An Elasticsearch implementation of Laravel's Eloquent ORM
The Power of Elasticsearch with Laravel's Eloquent
This package extends Laravel's Eloquent model and query builder with seamless integration of Elasticsearch functionalities. Designed to feel native to Laravel, this package enables you to work with Eloquent models while leveraging the powerful search and analytics capabilities of Elasticsearch.
The Eloquent you already know:
Elasticsearch with Eloquent:
Built in Relationships (even to SQL models):
Read the Documentation
Installation
Maintained versions (Elasticsearch 8.x):
Laravel 10.x, 11.x & 12.x (main):
| Laravel Version | Command | Maintained |
|---|---|---|
| Laravel 10/11/12 | composer require pdphilip/elasticsearch:~5 |
✅ Active |
| Laravel 10/11 (v4) | composer require pdphilip/elasticsearch:~4 |
🛠️ LTS |
| Laravel 9 | composer require pdphilip/elasticsearch:~3.9 |
🛠️ LTS |
| Laravel 8 | composer require pdphilip/elasticsearch:~3.8 |
🛠️ LTS |
Unmaintained versions (Elasticsearch 8.x):
| Laravel Version | Command | Maintained |
|---|---|---|
| Laravel 7.x | composer require pdphilip/elasticsearch:~2.7 |
❌ EOL |
| Laravel 6.x (5.8) | composer require pdphilip/elasticsearch:~2.6 |
❌ EOL |
Unmaintained versions (Elasticsearch 7.x):
| Laravel Version | Command | Maintained |
|---|---|---|
| Laravel 9.x | composer require pdphilip/elasticsearch:~1.9 |
❌ EOL |
| Laravel 8.x | composer require pdphilip/elasticsearch:~1.8 |
❌ EOL |
| Laravel 7.x | composer require pdphilip/elasticsearch:~1.7 |
❌ EOL |
| Laravel 6.x (5.8) | composer require pdphilip/elasticsearch:~1.6 |
❌ EOL |
Configuration
- Set up your
.envwith the following Elasticsearch settings:
For multiple nodes, pass in as comma-separated:
Example cloud config .env: (Click to expand)
- In
config/database.php, add the elasticsearch connection:
3. If packages are not autoloaded, add the service provider:
For Laravel 11 +:
For Laravel 10 and below:
Now, you're all set to use Elasticsearch with Laravel as if it were native to the framework.
Documentation Links
Getting Started
Eloquent
- The Base Model
- Saving Models
- Deleting Models
- Querying Models
- Eloquent Queries
- ES Eloquent Queries
- Cross Fields Search Queries
- Aggregation Queries
- Distinct and GroupBy Queries
- Nested Queries
- Ordering and Pagination
- Chunking
- Dynamic Indices
Relationships
Migrations: Schema/Index
Misc
Credits
License
The MIT License (MIT). Please see License File for more information.
Looking to use Elasticsearch for full-text search of your SQL models?
All versions of elasticsearch with dependencies
illuminate/container Version ^10.0|^11|^12
illuminate/database Version ^10.30|^11|^12
illuminate/events Version ^10.0|^11|^12
illuminate/support Version ^10.0|^11|^12
elasticsearch/elasticsearch Version ^8.17
spatie/ignition Version ^1.15
jeremy379/omniterm Version ^2