Integrates Algolia into Symfony
The best way to install this bundle is by using Composer. Simply run:
$ php composer.phar require goldenline/algolia-bundle 1.0.0
Then, enable the bundle:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Goldenline\AlgoliaBundle\GoldenlineAlgoliaBundle(),
);
}
Finally add your configuration:
# app/config/config.yml
goldenline_algolia:
client:
application_id: <your_application_id>
application_key: <your_application_key>
indices:
foo:
name: prefix_foo
bar:
name: bar
Currently we don`t support XML configuration.
Get your index from container i.e.:
$this->getContainer()->get('goldenline_algolia.index.foo');
and use it according to https://github.com/algolia/algoliasearch-client-php#search documentation.
You can also use client service located in container: goldenline_algolia.client
according to https://github.com/algolia/algoliasearch-client-php
This bundle is released under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE