{"id":13416732,"url":"https://github.com/shift31/laravel-elasticsearch","last_synced_at":"2026-04-06T00:05:29.541Z","repository":{"id":11440321,"uuid":"13897054","full_name":"shift31/laravel-elasticsearch","owner":"shift31","description":"Elasticsearch for Laravel","archived":false,"fork":false,"pushed_at":"2017-08-24T20:48:39.000Z","size":61,"stargazers_count":195,"open_issues_count":3,"forks_count":40,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-09-29T06:35:15.541Z","etag":null,"topics":["elasticsearch-client","laravel","laravel-elasticsearch","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shift31.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-27T06:45:06.000Z","updated_at":"2024-07-09T09:43:24.000Z","dependencies_parsed_at":"2022-09-22T22:51:16.426Z","dependency_job_id":null,"html_url":"https://github.com/shift31/laravel-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift31%2Flaravel-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift31%2Flaravel-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift31%2Flaravel-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shift31%2Flaravel-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shift31","download_url":"https://codeload.github.com/shift31/laravel-elasticsearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243671225,"owners_count":20328586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch-client","laravel","laravel-elasticsearch","php"],"created_at":"2024-07-30T22:00:20.995Z","updated_at":"2025-12-23T01:02:37.594Z","avatar_url":"https://github.com/shift31.png","language":"PHP","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"Laravel Elasticsearch Service Provider  (4.5.0)\n================================================\n[![Latest Stable Version](https://poser.pugx.org/shift31/laravel-elasticsearch/v/stable)](https://packagist.org/packages/shift31/laravel-elasticsearch)\n[![Total Downloads](https://poser.pugx.org/shift31/laravel-elasticsearch/downloads)](https://packagist.org/packages/shift31/laravel-elasticsearch)\n[![Build Status](https://travis-ci.org/shift31/laravel-elasticsearch.svg?branch=4.5)](https://travis-ci.org/shift31/laravel-elasticsearch)\n[![Coverage Status](https://coveralls.io/repos/github/shift31/laravel-elasticsearch/badge.svg?branch=4.5)](https://coveralls.io/github/shift31/laravel-elasticsearch?branch=master)\n[![License](https://poser.pugx.org/shift31/laravel-elasticsearch/license)](https://packagist.org/packages/shift31/laravel-elasticsearch)\n\nThis is a Laravel (4.2) Service Provider for the [official Elasticsearch low-level client](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/5.0/index.html).\n\nVersion Matrix\n------------------\nSince there are breaking changes in Elasticsearch versions, your version of Elasticsearch must match the version of this \nlibrary, which matches the version of the Elasticsearch low-level client. \n\n|Shift31/laravel-elasticsearch| Elasticsearch | Laravel |\n| :---: | :---: | :---: |\n| 0.4| \u003c= 0.90.* | 4.2 |\n| 1.0, 2.0| \\\u003e= 1.0 | 4.x, 5.x |\n|4.0| \u003c= 0.90.* | 4.2|\n|4.1| \\\u003e= 1.0 \u003c= 2.0 | 4.2|\n|4.2| \\\u003e= 2.0 \u003c= 5.0| 4.2|\n|4.5| \\\u003e= 5.0| 4.2|\n|5.0| \u003c= 0.90.* | 5.x|\n|5.1| \\\u003e= 1.0 \u003c= 2.0 | 5.x|\n|5.2| \\\u003e= 2.0 \u003c= 5.0| 5.x|\n|5.5| \\\u003e= 5.0| 5.x|\n\nAttention: Until we launch new versions please keep using old stable versions (which are created as a branch) and don't use dev-master branch!\n\nUsage\n-----\n1. Run `composer require shift31/laravel-elasticsearch:~4.5.0`\n\n2. Publish config file\n\nLaravel artisan command \n```\n$ php artisan config:publish shift31/laravel-elasticsearch \n```\nYou can always read config parameters with:\n```php\n\\Config::get('shift31::elasticsearch');\n```\nNote: The keys of this array should be named according the parameters supported by [Elasticsearch\\ClientBuilder](https://github.com/elastic/elasticsearch-php/blob/5.0/src/Elasticsearch/ClientBuilder.php#L119).\n\n3. In the `'providers'` array in app/config/app.php, add `'Shift31\\LaravelElasticsearch\\ElasticsearchServiceProvider'`. \n\n4. Use the `Es` facade to access any method from the `Elasticsearch\\Client` class, for example:\n```php\n$searchParams['index'] = 'your_index';\n$searchParams['size'] = 50;\n$searchParams['body']['query']['query_string']['query'] = 'foofield:barstring';\n$result = Es::search($searchParams);\n```\n\nDefault Configuration\n---------------------\nIf you return an empty array in the config file, Service provider [merges default config with custom config variables](src/Shift31/LaravelElasticsearch/ElasticsearchServiceProvider.php).\nFor custom config file question please see [this](https://www.elastic.co/guide/en/elasticsearch/client/php-api/5.0/_configuration.html#_building_the_client_from_a_configuration_hash) elastic search configuration page.\n\n[Default config file](src/config/elasticsearch.php) which is publishing by artisan command.\n\nContributing\n---------------------\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift31%2Flaravel-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshift31%2Flaravel-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshift31%2Flaravel-elasticsearch/lists"}