PHP code example of pedromdev / elasticsearch-module
1. Go to this page and download the library: Download pedromdev/elasticsearch-module 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/ */
pedromdev / elasticsearch-module example snippets
return [
'modules' => [
'ElasticsearchModule',
],
];
$client = $serviceLocator->get('elasticsearch.client.default');
$client = $serviceLocator->get('Elasticsearch\Client');
bash
php composer.phar install --no-dev
bash
php composer.phar update --no-dev