PHP code example of behappy / elasticsearch-plugin
1. Go to this page and download the library: Download behappy/elasticsearch-plugin 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/ */
behappy / elasticsearch-plugin example snippets
public function registerBundles()
{
return array_merge(parent::registerBundles(), [
...
new \FOS\ElasticaBundle\FOSElasticaBundle(),
new \BitBag\SyliusElasticsearchPlugin\BitBagSyliusElasticsearchPlugin(),
]);
}