API Reference
/
API Methods
/
Install the PHP API Client
Feb. 09, 2021
Install the PHP API Client
With Composer (recommended)
Install the package via Composer:
Copy
$
composer require algolia/algoliasearch-client-php
Without Composer
- Download the client from GitHub and unzip it in your project
- Inside the client root folder, execute
./bin/install-dependencies-without-composer
- In your code, require the
autoload.php
in the client root folder
Supported platforms
The API client is compatible with PHP version 7.2 and later.
Language-specific notes
If you’re a Symfony or Laravel user, you’re probably looking for the following integrations:
- Laravel: Laravel Scout
- Symfony: algolia/AlgoliaSearchBundle