PHPackages                             emonsite/ems-api-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. emonsite/ems-api-php-client

ActiveLibrary[API Development](/categories/api)

emonsite/ems-api-php-client
===========================

ems api php client

02.8kPHP

Since Oct 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/e-monsite/ems-api-php-client)[ Packagist](https://packagist.org/packages/emonsite/ems-api-php-client)[ RSS](/packages/emonsite-ems-api-php-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ems-api php client
==================

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

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

[](#requirements)

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

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

[](#installation)

```
composer require emonsite/ems-api-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)

ems-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 \Emonsite\Api\ApiClient $apiClient */
$apiClient = new \Emonsite\Api\ApiClient(
    $token,
    'https://ems-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 \Emonsite\Api\Resources\UserResponse $userResponse */
$userResponse = $apiClient->MeManager()->getUser();

/** @var \Emonsite\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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

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/c1ea3c30eaabe0dcdb7ddf801f2ce66fb6ed33b83601799cec95c3b578c390cf?d=identicon)[rygilles](/maintainers/rygilles)

### Embed Badge

![Health badge](/badges/emonsite-ems-api-php-client/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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