srtfisher/laravel-elastica
Elastica for Laravel 4
This is a Laravel 4 Service Provider for the Elastica Elasticsearch Client
Installation
Require laravel-elastica in composer.
composer require srtfisher/laravel-elastica:0.*
Add it to your providers in config/app.php
'Srtfisher\LaravelElastica\LaravelElasticaServiceProvider'
Add it to your aliases:
'Es' => 'Srtfisher\LaravelElastica\LaravelElasticaFacade'
Okay, you would be good to go.
Configuration
You can use the default configuration to connect to your localhost:9200 server.
Or you could publish the configuration and change the server.
$ php artisan config:publish srtfisher/laravel-elastica
The configuration will be passed to the client constructor. Information on Elastica configuration can be found at http://elastica.io/getting-started/installation.html.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.1 | >=5.4.0 | MIT |