PHP code example of easybib / silex-elastica
1. Go to this page and download the library: Download easybib/silex-elastica library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
easybib / silex-elastica example snippets
$app->register(new EasyBib\Service\Elastica\ElasticaServiceProvider(), array(
'elastica.client_options' => array(
'host' => 'localhost',
'port' => 9200,
),
));