media24si / eswrapper
This package is abandoned and no longer maintained.
No replacement package was suggested.
Laravel 5 Elasticsearch-PHP 2 wrapper
1.0
2016-01-05 10:20 UTC
Requires
- php: >=5.6.0
- elasticsearch/elasticsearch: ~2.0
- laravel/framework: 5.*
This package is auto-updated.
Last update: 2022-12-16 20:31:44 UTC
README
Facade for elasticsearch-php2
Install
Require this package with Composer (Packagist), using the following command:
$ composer require media24si/eswrapper
Register the ESWrapperServiceProvider to the providers array in config/app.php
Media24si\ESWrapper\ESWrapperServiceProvider::class,
Publish vendor files (config file):
$ php artisan vendor:publish
Optional
Register the facade in config/app.php
:
'Elastic' => Media24si\ESWrapper\Facades\ESWrapper::class
Usage
You can use this package without any configuration. Just use the \Elastic facade in your controller.
Call your endpoints, like you would a normal elasticsearch client:
\Elastic::get([ 'index' => 'my_index', 'type' => 'my_type', 'id' => 'my_id' ]);
License
The MIT License (MIT). Please see License File for more information.