The Composition API client is part of the algoliasearch-client-php package. To install this package, run:

1
composer require algolia/algoliasearch-client-php

To use the Composition client, add this import to your files:

1
use Algolia\AlgoliaSearch\Api\CompositionClient;

To create an instance of the client:

1
$client = CompositionClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');

List of methods

Each method makes one request to the Composition API.

Did you find this page helpful?