PHPackages                             emsearch/emsearch-php-client - 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. emsearch/emsearch-php-client

ActiveLibrary[API Development](/categories/api)

emsearch/emsearch-php-client
============================

emsearch Api PHP Client

030.8kPHP

Since Mar 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/emsearch/emsearch-php-client)[ Packagist](https://packagist.org/packages/emsearch/emsearch-php-client)[ RSS](/packages/emsearch-emsearch-php-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

emsearch API PHP client
=======================

[](#emsearch-api-php-client)

Requirements
------------

[](#requirements)

The only lib required is [Guzzle, PHP HTTP client](https://github.com/guzzle/guzzle).

Installation
------------

[](#installation)

```
composer require emsearch/emsearch-php-client
```

OpenAPI specification file
--------------------------

[](#openapi-specification-file)

This PHP client lib was generated using the [openapi.json](./openapi.json) file located in the root directory. Copy this file content in [editor.swagger.io](https://editor.swagger.io/) to see all the possibilities.

Use
---

[](#use)

### Initialize the client

[](#initialize-the-client)

emsearch API uses OAuth2 access authentication.

The first parameter must be a valid access token. The second parameter is the API entry point url. The third one is optional and is an array of headers that will be apply to every requests of the internal Guzzle client, allowing to specify the accepted language for errors eg.

```
/** @var \Emsearch\Api\ApiClient $apiClient */
$apiClient = new \Emsearch\Api\ApiClient(
    $token,
    'https://emsearch-api-entry-point.tld',
    ['Accept-Language' => 'en']
);
```

### Request resources with managers

[](#request-resources-with-managers)

Handle resources requesting with the main API client object like this :

```
/** @var \Emsearch\Api\Resources\UserResponse $userResponse */
$userResponse = $apiClient->MeManager()->getUser();

/** @var \Emsearch\Api\Resources\User $me */
$me = $userResponse->data;
```

TODO
----

[](#todo)

More documentation to come with the first release...

Features to come :

- Link to the main documentation
- Generated unit test

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e2060dd249dfe048135cdd6859aa4c4cc3827e91bc00967c31754182f2aded2?d=identicon)[emsearch](/maintainers/emsearch)

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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