Skip to main content
To access the API directly, you may need to interact with Algolia’s PHP client. The Algolia PHP client lets you use Algolia’s features in the most customizable way possible.
Before you access the Algolia’s PHP client directly, make sure that there aren’t any breaking changes:
Command line

Algolia::client

The client method returns an instance of Algolia\AlgoliaSearch\SearchClient:
PHP

Algolia::index

The index method returns an instance of Algolia\AlgoliaSearch\SearchIndex:
PHP

Algolia::analytics

The analytics method returns an instance of Algolia\AlgoliaSearch\AnalyticsClient:
PHP
Last modified on June 12, 2026