Skip to main content

Require the dependency (with Composer)

Command line
composer require algolia/search-bundle

Register the bundle

The bundle is registered automatically. If it doesn’t register, add the following entry to config/bundles.php:
PHP
return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    // ... Other bundles ...
    Algolia\SearchBundle\AlgoliaSearchBundle::class => ['all' => true],
];

Algolia credentials

You need to provide the Algolia and Admin . By default, they’re loaded from the ALGOLIA_APP_ID and ALGOLIA_API_KEY environment variables. If you use a .env file, you can set them there.
.env
ALGOLIA_APP_ID=# Your Algolia application ID
ALGOLIA_API_KEY=# Your Algolia API key
Last modified on April 27, 2026