PHPackages                             algolia/algoliasearch-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. algolia/algoliasearch-client-php

ActiveLibrary[API Development](/categories/api)

algolia/algoliasearch-client-php
================================

API powering the features of Algolia.

4.40.0(1mo ago)69433.0M—1%113[16 issues](https://github.com/algolia/algoliasearch-client-php/issues)[5 PRs](https://github.com/algolia/algoliasearch-client-php/pulls)20MITPHPPHP &gt;=8.1 !=8.3.0CI passing

Since Dec 16Pushed 5d ago81 watchersCompare

[ Source](https://github.com/algolia/algoliasearch-client-php)[ Packagist](https://packagist.org/packages/algolia/algoliasearch-client-php)[ Docs](https://github.com/algolia/algoliasearch-client-php)[ RSS](/packages/algolia-algoliasearch-client-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (279)Used By (20)

 [ ![Algolia for PHP](https://raw.githubusercontent.com/algolia/algoliasearch-client-common/master/banners/php.png) ](https://www.algolia.com)

#### The perfect starting point to integrate [Algolia](https://algolia.com) within your PHP project

[](#the-perfect-starting-point-to-integrate-algolia-within-your-php-project)

 [![CircleCI](https://camo.githubusercontent.com/942e055fe895e3cdb0f4a1a290766b1e2a5fbf6144412121978a1e7084280c7f/68747470733a2f2f636972636c6563692e636f6d2f67682f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068702e7376673f7374796c653d736869656c64)](https://circleci.com/gh/algolia/algoliasearch-client-php) [![Total Downloads](https://camo.githubusercontent.com/c528dd9a77b557690d65d50d738d237f866ffef01cb2945f8f1b03ecc09445a5/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068702f642f746f74616c2e737667)](https://packagist.org/packages/algolia/algoliasearch-client-php) [![Latest Version](https://camo.githubusercontent.com/18858fb21c2a92d9e24fcdc8e9ad4cfc86ecc7bc25903ed6468323fcf1b791a6/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068702f762f737461626c652e737667)](https://packagist.org/packages/algolia/algoliasearch-client-php) [![License](https://camo.githubusercontent.com/511b75038126b0dd005da6146916afe2122e5f1fe4aa980caf97222d467cc556/68747470733a2f2f706f7365722e707567782e6f72672f616c676f6c69612f616c676f6c69617365617263682d636c69656e742d7068702f6c6963656e73652e737667)](https://packagist.org/packages/algolia/algoliasearch-client-php)

 [Documentation](https://www.algolia.com/doc/libraries/sdk/install#php) • [Laravel](https://github.com/algolia/scout-extended) • [Symfony](https://github.com/algolia/search-bundle) • [Community Forum](https://discourse.algolia.com) • [Stack Overflow](http://stackoverflow.com/questions/tagged/algolia) • [Report a bug](https://github.com/algolia/algoliasearch-client-php/issues) • [Support](https://www.algolia.com/support)

✨ Features
----------

[](#-features)

- Thin &amp; minimal low-level HTTP client to interact with Algolia's API
- Supports php `^8.0`.

💡 Getting Started
-----------------

[](#-getting-started)

First, install Algolia PHP API Client via the [composer](https://getcomposer.org/) package manager:

```
composer require algolia/algoliasearch-client-php "^4.0"
```

You can now import the Algolia API client in your project and play with it.

```
use Algolia\AlgoliaSearch\Api\SearchClient;

$client = SearchClient::create('', '');

// Add a new record to your Algolia index
$response = $client->saveObject(
    '',
    ['objectID' => 'id',
        'test' => 'val',
    ],
);

// play with the response
var_dump($response);

// Poll the task status to know when it has been indexed
$client->waitForTask('', $response['taskID']);

// Fetch search results, with typo tolerance
$response = $client->search(
    ['requests' => [
        ['indexName' => '',
            'query' => '',
            'hitsPerPage' => 50,
        ],
    ],
    ],
);

// play with the response
var_dump($response);
```

For full documentation, visit the **[Algolia PHP API Client](https://www.algolia.com/doc/libraries/sdk/install#php)**.

❓ Troubleshooting
-----------------

[](#-troubleshooting)

Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://support.algolia.com/hc/sections/15061037630609-API-Client-FAQs) where you will find answers for the most common issues and gotchas with the client. You can also open [a GitHub issue](https://github.com/algolia/api-clients-automation/issues/new?assignees=&labels=&projects=&template=Bug_report.md)

Contributing
------------

[](#contributing)

This repository hosts the code of the generated Algolia API client for PHP, if you'd like to contribute, head over to the [main repository](https://github.com/algolia/api-clients-automation). You can also find contributing guides on [our documentation website](https://api-clients-automation.netlify.app/docs/introduction).

📄 License
---------

[](#-license)

The Algolia PHP API Client is an open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

82

—

ExcellentBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity72

Solid adoption and visibility

Community49

Growing community involvement

Maturity98

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 68.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Recently: every ~10 days

Total

274

Last Release

55d ago

Major Versions

3.3.1 → 4.0.0-alpha.92022-08-03

3.3.2 → 4.0.0-alpha.232022-10-03

3.4.0 → 4.0.0-alpha.762023-08-16

3.4.1 → 4.0.0-alpha.782023-08-29

3.4.2 → 4.13.02025-01-22

PHP version history (9 changes)1.6.3PHP &gt;=5.3.3

1.8.1PHP &gt;=5.4

1.9.2PHP &gt;=5.3

2.0.0-RCPHP ^5.3 || ^7.0

2.7.3PHP ^5.3 || ^7.0 || ^8.0

3.0.0PHP ^7.2 || ^8.0

4.0.0-alpha.2PHP ^7.3 || ^8.0

4.0.0-alpha.87PHP &gt;=8.1

4.13.1PHP &gt;=8.1 !=8.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6d048f4c846e591bf24f521537e3ba9ba6ee1e0d7e466714c346c1a4cf7b576?d=identicon)[maxiloc](/maintainers/maxiloc)

![](https://www.gravatar.com/avatar/2d7edc00d7586a052392de7e25358c0e37b80631002efd3863432ff4fb61a033?d=identicon)[speedblue](/maintainers/speedblue)

![](https://www.gravatar.com/avatar/dd7b3a0ca4d58fca8b57cfd28ac17cb1e37b5fc6f92376b725a9d22f3d94379e?d=identicon)[julienbourdeau](/maintainers/julienbourdeau)

![](https://www.gravatar.com/avatar/8872743d477884bcf3c86d99d432aa5863ebb69c7d0fbd2d3945cff1a33c0745?d=identicon)[chloelbn](/maintainers/chloelbn)

---

Top Contributors

[![algolia-bot](https://avatars.githubusercontent.com/u/30854082?v=4)](https://github.com/algolia-bot "algolia-bot (715 commits)")[![shortcuts](https://avatars.githubusercontent.com/u/20689156?v=4)](https://github.com/shortcuts "shortcuts (154 commits)")[![millotp](https://avatars.githubusercontent.com/u/20277482?v=4)](https://github.com/millotp "millotp (80 commits)")[![eunjae-lee](https://avatars.githubusercontent.com/u/499898?v=4)](https://github.com/eunjae-lee "eunjae-lee (65 commits)")[![damcou](https://avatars.githubusercontent.com/u/1649459?v=4)](https://github.com/damcou "damcou (25 commits)")[![DevinCodes](https://avatars.githubusercontent.com/u/46448173?v=4)](https://github.com/DevinCodes "DevinCodes (3 commits)")[![anghelalexandra](https://avatars.githubusercontent.com/u/3062304?v=4)](https://github.com/anghelalexandra "anghelalexandra (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![MaxenceMaire](https://avatars.githubusercontent.com/u/14932990?v=4)](https://github.com/MaxenceMaire "MaxenceMaire (1 commits)")[![sbellone](https://avatars.githubusercontent.com/u/2042109?v=4)](https://github.com/sbellone "sbellone (1 commits)")

---

Tags

algoliaalgolia-searchapi-clientfaceted-searchgeo-searchphpsearchsearch-enginesearch-synonymsphpapiclientsearchalgolia

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/algolia-algoliasearch-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/algolia-algoliasearch-client-php/health.svg)](https://phpackages.com/packages/algolia-algoliasearch-client-php)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[rubix/server

Deploy your Rubix ML models to production with scalable stand-alone inference servers.

632.3k](/packages/rubix-server)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
