PHPackages                             docler-labs/api-client-base - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. docler-labs/api-client-base

ActiveLibrary[HTTP &amp; Networking](/categories/http)

docler-labs/api-client-base
===========================

SDK Generator - API Client Base

3.0.2(5y ago)728.9k1MITPHPPHP ^7.0CI failing

Since Jul 6Pushed 5y ago14 watchersCompare

[ Source](https://github.com/DoclerLabs/api-client-base)[ Packagist](https://packagist.org/packages/docler-labs/api-client-base)[ RSS](/packages/docler-labs-api-client-base/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

OpenAPI SDK generator - API Client Base
=======================================

[](#openapi-sdk-generator---api-client-base)

This library provides the base classes and interfaces for the generated clients made by [api-client-generator](https://github.com/DoclerLabs/api-client-generator).

[![Latest Stable Version](https://camo.githubusercontent.com/c388d2217bd747f1e64f3c5345dd332f3111717f0d27b926efd7a61ff1a9ca7d/68747470733a2f2f706f7365722e707567782e6f72672f646f636c65722d6c6162732f6170692d636c69656e742d626173652f762f737461626c65)](https://packagist.org/packages/docler-labs/api-client-base)[![License](https://camo.githubusercontent.com/6e39a921dba8167b26234be0403c9b230b67685751a498355184be4c4448a8d9/68747470733a2f2f706f7365722e707567782e6f72672f646f636c65722d6c6162732f6170692d636c69656e742d626173652f6c6963656e7365)](https://packagist.org/packages/docler-labs/api-client-base)[![Build Status](https://camo.githubusercontent.com/967f76919fb7bda7c6e97b14cdfb01cb5d4fef05d007ac0515db1a939e03a1d9/68747470733a2f2f7472617669732d63692e6f72672f446f636c65724c6162732f6170692d636c69656e742d626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DoclerLabs/api-client-base)[![Coverage Status](https://camo.githubusercontent.com/486e084af0b18a66e01d301846559cf2f4aced1773a722da2f1d86b3614eb230/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f446f636c65724c6162732f6170692d636c69656e742d626173652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DoclerLabs/api-client-base?branch=master)

Description
-----------

[](#description)

Base classes of the generated client are:

- ClientFactory - responsible for creating the client object with all of the necessary dependencies.
- Client - main class containing all of the methods needed to send API requests according to specification.
- Request - encapsulates incoming request parameters.
- RequestMapper - translates the request parameters suitable for the base Guzzle client.
- ResponseHandler - decides the appropriate response based on the returned response status code (specific exception on the error status code).
- ResponseMapperRegistry - simple container for the response mappers.
- ResponseMapper - maps raw response into the easy-to-use schema objects.
- Schema - entity objects within the scope of the client (e.g. Post).

This base client repository provides the static, reusable parts of this client structure: RequestMapper, ResponseHandler, Exceptions, etc.

Development
-----------

[](#development)

### Setup

[](#setup)

```
composer install

```

### Testing

[](#testing)

```
vendor/bin/phpunit

```

See test reports in `test-reports` directory.

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

[](#contributing)

Create a branch and open PR.

All notable changes to this project are documented in the [CHANGELOG.md](CHANGELOG.md) file, it must be maintained.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~15 days

Total

5

Last Release

2079d ago

Major Versions

1.0.0 → 2.0.02020-07-28

2.0.1 → 3.0.12020-09-03

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/87966ff11d1a8df3887095bb776fd07aa7345250c2fd41dd100414171cc0ffaf?d=identicon)[meetmatt](/maintainers/meetmatt)

![](https://www.gravatar.com/avatar/5f026b1b88a0ea363236c0f0f1b4afe0b4f0c46a7bd191f632c47ef08a68a000?d=identicon)[tommey](/maintainers/tommey)

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

---

Tags

apirestopenapiapi client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/docler-labs-api-client-base/health.svg)

```
[![Health](https://phpackages.com/badges/docler-labs-api-client-base/health.svg)](https://phpackages.com/packages/docler-labs-api-client-base)
```

###  Alternatives

[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[ory/hydra-client

Documentation for all of Ory Hydra's APIs.

17435.9k](/packages/ory-hydra-client)[elasticemail/elasticemail-php

This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available &lt;a target='\_blank' href='https://app.elasticemail.com/marketing/settings/new/manage-api'&gt;here&lt;/a&gt;). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository &lt;a target='\_blank' href='https://github.com/ElasticEmail?tab=repositories&amp;q=%22rest+api%22+in%3Areadme'&gt;here&lt;/a&gt;

1595.0k2](/packages/elasticemail-elasticemail-php)[ory/kratos-client-php

This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.

1529.2k3](/packages/ory-kratos-client-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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