1. Go to this page and download the library: Download baka/elasticsearch 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/ */
#service.php
$di->set('queue', function () use ($config) {
//Connect to the queue
$queue = new Phalcon\Queue\Beanstalk\Extended([
'host' => $config->beanstalk->host,
'prefix' => $config->beanstalk->prefix,
]);
return $queue;
});
class Users extends \Baka\Elasticsearch\Model
{
}
/**
* Search controller
*/
class SearchController extends BaseController
{
use \Baka\Elasticsearch\SearchTrait
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.