The generated API clients are a work in progress, you can also find our stable clients on the Algolia documentation.

Skip to main content

PHP

PreviousLatestDescription
"algolia/algoliasearch-client-php": "^3.2""algolia/algoliasearch-client-php": "^4.0@alpha"During the beta phase, the clients are available under the package 4.x.x-alpha , you can find a full list here.
Algolia\AlgoliaSearchAlgolia\AlgoliaSearch\ApiExported clients have now the namespace suffixed by Api.
Algolia\AlgoliaSearch\ConfigAlgolia\AlgoliaSearch\ConfigurationConfiguration classes are now located in a Configuration directory (instead of Config before).
Algolia\AlgoliaSearch\Support\UserAgentAlgolia\AlgoliaSearch\Support\AlgoliaAgentUserAgent class has been renamed to AlgoliaAgent for consistency across client languages (addCustomUserAgent method also became addAlgoliaAgent).
Algolia\AlgoliaSearch\SearchIndexremovedSince the method initIndex doesn’t exist anymore, we decided to merge the SearchIndex class inside the SearchClient one, now all the methods related to search endpoints are located there.
Algolia\AlgoliaSearch\Cache\FileCacheDriverremovedThis implementation of the CacheInterface is not available anymore in the Client. If you feel the need for it, please open an issue