PHPackages                             apimatic/core - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apimatic/core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

apimatic/core
=============

Core logic and the utilities for the Apimatic's PHP SDK

0.3.17(3mo ago)72.4M—3.1%5[1 issues](https://github.com/apimatic/core-lib-php/issues)20MITPHPPHP ^7.2 || ^8.0CI passing

Since Sep 30Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/apimatic/core-lib-php)[ Packagist](https://packagist.org/packages/apimatic/core)[ Docs](https://github.com/apimatic/core-lib-php)[ RSS](/packages/apimatic-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (38)Used By (20)

APIMatic Core Library for PHP
=============================

[](#apimatic-core-library-for-php)

[![Version](https://camo.githubusercontent.com/860c26cfd5f7e88134bd3e359f08a12ba2c40b966450ee25e213ac0259c1a036/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170696d617469632f636f72652e7376673f7374796c653d666c6174)](https://packagist.org/packages/apimatic/core)[![Tests](https://github.com/apimatic/core-lib-php/actions/workflows/test.yml/badge.svg)](https://github.com/apimatic/core-lib-php/actions/workflows/test.yml)[![Test Coverage](https://camo.githubusercontent.com/5d789127375834d6090330afa444d729f998f2c1b68aeb800ee6a7cea421e652/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6170696d617469635f636f72652d6c69622d706870266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-php)[![Maintainability Rating](https://camo.githubusercontent.com/f8e8b6a48f93f9b59e45204014c9f0ded855a0608ac728d923d7d89aa2fbe5bf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6170696d617469635f636f72652d6c69622d706870266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-php)[![Vulnerabilities](https://camo.githubusercontent.com/85ea5f8a065c4166fa5dc915af49e18fdf4a299c7c667f8f1c5f65b1e061ceaa/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6170696d617469635f636f72652d6c69622d706870266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/summary/new_code?id=apimatic_core-lib-php)[![Licence](https://camo.githubusercontent.com/a3ad04e1813250aaf6af1d9c40974c71e39fb4a5819aa0e83f7862601076aa25/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d4d49542d626c7565)](LICENSE)

Introduction
------------

[](#introduction)

Core logic and the utilities for the Apimatic's PHP SDK.

Supported PHP Versions
----------------------

[](#supported-php-versions)

- PHP 7.2
- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "apimatic/core"
```

Request
-------

[](#request)

NameDescription[`AdditionalFormParams`](src/Request/Parameters/AdditionalFormParams.php)Used to add additional form params to a request[`AdditionalHeaderParams`](src/Request/Parameters/AdditionalHeaderParams.php)Used to add additional header params to a request[`AdditionalQueryParams`](src/Request/Parameters/AdditionalQueryParams.php)Used to add additional query params to a request[`BodyParam`](src/Request/Parameters/BodyParam.php)Body parameter class[`FormParam`](src/Request/Parameters/FormParam.php)Form parameter class[`HeaderParam`](src/Request/Parameters/HeaderParam.php)Header parameter class[`QueryParam`](src/Request/Parameters/QueryParam.php)Query parameter class[`TemplateParam`](src/Request/Parameters/TemplateParam.php)Template parameter class[`RequestBuilder`](src/Request/RequestBuilder.php)Used to instantiate a new Request object with the properties provided[`Request`](src/Request/Request.php)Request class for an API callResponse
--------

[](#response)

NameDescription[`DeserializableType`](src/Response/Types/DeserializableType.php)Type handler used to deserialize Enums and DateTime[`ErrorType`](src/Response/Types/ErrorType.php)Type handler used to throw exceptions from responses[`ResponseMultiType`](src/Response/Types/ResponseMultiType.php)Maps a group of types to response body[`ResponseType`](src/Response/Types/ResponseType.php)Maps a model to response body[`ResponseError`](src/Response/ResponseError.php)Group of error types for response[`ResponseHandler`](src/Response/ResponseHandler.php)Response handler for an API call that holds all the above response handling features[`Context`](src/Response/Context.php)Holds the current context i.e. the current request, response and other needed detailsLogger
------

[](#logger)

NameDescription[`ApiLogger`](src/Logger/ApiLogger.php)Provides implementation for logging API requests and responses[`NullApiLogger`](src/Logger/NullApiLogger.php)Provides the default implementation for ApiLogger when no logging configuration is provided[`ConsoleLogger`](src/Logger/ConsoleLogger.php)A LoggerInterface implementation that log messages on console[`LoggerConstants`](src/Logger/LoggerConstants.php)Holds constants like NON\_SENSITIVE\_HEADERS, etc.[`BaseHttpLoggingConfiguration`](src/Logger/Configuration/BaseHttpLoggingConfiguration.php)Common configurations shared by request and response logging configurations[`LoggingConfiguration`](src/Logger/Configuration/LoggingConfiguration.php)Provides client's logging configurations[`RequestConfiguration`](src/Logger/Configuration/RequestConfiguration.php)Provides request's logging configurations[`ResponseConfiguration`](src/Logger/Configuration/ResponseConfiguration.php)Provides response's logging configurationsTestCase
--------

[](#testcase)

NameDescription[`KeysAndValuesBodyMatcher`](src/TestCase/BodyMatchers/KeysAndValuesBodyMatcher.php)Matches actual and expected body, considering both the keys and values[`KeysBodyMatcher`](src/TestCase/BodyMatchers/KeysBodyMatcher.php)Matches actual and expected body, considering just the keys[`NativeBodyMatcher`](src/TestCase/BodyMatchers/NativeBodyMatcher.php)A body matcher for native values like string, int etc[`RawBodyMatcher`](src/TestCase/BodyMatchers/RawBodyMatcher.php)Exactly matches the body received to expected body[`HeadersMatcher`](src/TestCase/HeadersMatcher.php)Matches the headers received and the headers expected[`StatusCodeMatcher`](src/TestCase/StatusCodeMatcher.php)Matches the HTTP status codes received to the expected ones[`CoreTestCase`](core-lib-php/src/TestCase/CoreTestCase.php)Main class for a test case that performs assertions w/ all the above matchers

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance76

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.2% 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 ~40 days

Recently: every ~101 days

Total

31

Last Release

112d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.2 &lt;8.2

0.2.5PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65c334b3d1ede690abde85f2839813a0fd24b0d0af03c3237a0820b15e9bded5?d=identicon)[apimatic](/maintainers/apimatic)

---

Top Contributors

[![asadali214](https://avatars.githubusercontent.com/u/26116671?v=4)](https://github.com/asadali214 "asadali214 (112 commits)")[![Mohammad-Haris](https://avatars.githubusercontent.com/u/34305911?v=4)](https://github.com/Mohammad-Haris "Mohammad-Haris (8 commits)")[![thehappybug](https://avatars.githubusercontent.com/u/3393530?v=4)](https://github.com/thehappybug "thehappybug (4 commits)")[![Ayeshas09](https://avatars.githubusercontent.com/u/88117894?v=4)](https://github.com/Ayeshas09 "Ayeshas09 (4 commits)")[![sufyankhanrao](https://avatars.githubusercontent.com/u/18752818?v=4)](https://github.com/sufyankhanrao "sufyankhanrao (2 commits)")[![MaryamAdnan3](https://avatars.githubusercontent.com/u/80243792?v=4)](https://github.com/MaryamAdnan3 "MaryamAdnan3 (2 commits)")[![ThomasLandauer](https://avatars.githubusercontent.com/u/1054469?v=4)](https://github.com/ThomasLandauer "ThomasLandauer (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![usamabintariq](https://avatars.githubusercontent.com/u/31243495?v=4)](https://github.com/usamabintariq "usamabintariq (1 commits)")[![dmnlk](https://avatars.githubusercontent.com/u/909198?v=4)](https://github.com/dmnlk "dmnlk (1 commits)")[![hamzamahmood](https://avatars.githubusercontent.com/u/22651856?v=4)](https://github.com/hamzamahmood "hamzamahmood (1 commits)")[![MuHamza30](https://avatars.githubusercontent.com/u/199583608?v=4)](https://github.com/MuHamza30 "MuHamza30 (1 commits)")

---

Tags

phpphpcoreapimaticcorelib

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/apimatic-core/health.svg)

```
[![Health](https://phpackages.com/badges/apimatic-core/health.svg)](https://phpackages.com/packages/apimatic-core)
```

PHPackages © 2026

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