Require the dependency (with Composer)
Register the bundle
The bundle is registered automatically. If it doesn’t register, add the following entry toconfig/bundles.php if you’re using Symfony 4 and later.
PHP
app/Kernel.php file:
PHP
Algolia credentials
You need to provide the Algolia App ID and Admin API key. By default, they’re loaded from theALGOLIA_APP_ID and ALGOLIA_API_KEY environment variables.
If you use a .env file,
you can set them there.
parameters.yml file.
YAML