Symfony Framework for the PHP Search API

Symfony

Search & AI framework for Symfony (PHP) developers

Sign up

Features

  • Made to simplify the usage of Algolia’s API within the Symfony Framework

  • Get started with 5 lines of YAML

  • Leverages Normalizers 2 to convert entities for indexing

  • Unsubscribe from doctrine events to use a messaging/queue system

  • Background retry strategy to ensure uptime

  • Seamless batching via iterators to optimize number of network calls

  • Zero downtime reindexing feature

  • API access to all Algolia functionality, AI products, and advanced features, including Recommend 

Version

  • Compatible with Symfony 3.4 LTS, Symfony >= 4.0, PHP >= 7.2

Related Integrations

PHP API Client, Autocomplete, InstantSearch

Get started

  • Install
    1
    composer require algolia/search-bundle:4.0.0
  • Index
    1
    algolia_search:
    2
      indices:
    3
        - name: posts
    4
          class: App\Entity\Post
    5
        - name: comments
    6
          class: App\Entity\Comment
    7
    8
    $searchService->index($entityManager, $postsAndComments);
  • Search
    1
    $em = $this->getDoctrine()->getManagerForClass(Post::class);
    2
    $posts = $this->searchService->search($em, Post::class, 'query');
Get started for free
Explore developer docs