goldenline/algolia-bundle
最新稳定版本:1.1.1
Composer 安装命令:
composer require goldenline/algolia-bundle
包简介
Integrates Algolia into Symfony
关键字:
README 文档
README
Integrates Algolia into Symfony
Installation
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.
Usage
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
License
This bundle is released under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
统计信息
- 总下载量: 64.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-12