norgul / larasearch
Elasticsearch enabled Eloquent models
Requires
- php: >=5.4.0
- doctrine/dbal: 2.5.1
- elasticsearch/elasticsearch: ~1.0
- illuminate/config: ~5.0
- illuminate/console: ~5.0
- illuminate/database: ~5.0
- illuminate/support: ~5.0
- nikic/php-parser: *
Requires (Dev)
- codeception/aspect-mock: *
- mockery/mockery: dev-master
- phpunit/phpunit: 4.4.*
README
This is a forked repository made for the sole purpose of working on Laravel 5 without errors. All other work is a courtesy of its respectful owner. Original repository
Introduction
Larasearch is a Laravel package that aims to seamlessly integrate Elasticsearch functionality with the Eloquent ORM.
Features
- Plug 'n Play searching functionality for Eloquent models
- Automatic creation/indexing based on Eloquent model properties and relations
- Aggregations, Suggestions, Autocomplete, Highlighting, etc. It's all there!
- Load Eloquent models based on Elasticsearch queries
- Automatic reindexing on updates of (related) Eloquent models
Installation
Laravel 5
Add Larasearch to your composer.json file:
"norgul/larasearch": "0.9.1"
Add the service provider to your Laravel application config:
'Iverberk\Larasearch\LarasearchServiceProvider'
Wiki
Please see the Github wiki for the most up-to-date documentation.
Changelog
All releases are tracked and documented in the changelog.
Credits
This package is very much inspired by these excellent packages that already exist for the Ruby/Rails ecosystem.
A lot of their ideas have been reused to work within a PHP/Laravel environment.