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 3w 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 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

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

2125d ago

Major Versions

1.0.0 → 2.0.02020-07-28

2.0.1 → 3.0.12020-09-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2611309?v=4)[sabee](/maintainers/sabee)[@sabee](https://github.com/sabee)

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

![](https://avatars.githubusercontent.com/u/903833?v=4)[Tommey](/maintainers/tommey)[@tommey](https://github.com/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

[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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