PHPackages                             kobas/api-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. kobas/api-client

ActiveLibrary[API Development](/categories/api)

kobas/api-client
================

2.4(5y ago)31.3k↓33.3%MITPHPCI failing

Since Apr 20Pushed 4y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (4)Versions (11)Used By (0)

Kobas API Client
================

[](#kobas-api-client)

[![Latest Version](https://camo.githubusercontent.com/e8f38f78307ba44b42530c9560b4a59e5d5e1c47d61d99939811e26df33325fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4b4f424153536f6674776172652f6170692d636c69656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/KOBASSoftware/api-client-php/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e0ee9ac25b6108396edbf8444ff068d5b1f2c1c1ae8e73452074676142147780/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b4f424153536f6674776172652f6170692d636c69656e742d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/KOBASSoftware/api-client-php)[![Documentation](https://camo.githubusercontent.com/d5d77fd66e772de546a00c16e1d24a77226ebe8a899417a7f40679d0de4355e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d70617373696e672d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://api-doc.kobas.co.uk/)[![Coverage Status](https://camo.githubusercontent.com/093700a7a7b8be4014b70c638994af8b7256e023c0430bf95c473dbfa5fb9cf6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4b4f424153536f6674776172652f6170692d636c69656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/KOBASSoftware/api-client-php/code-structure)[![Quality Score](https://camo.githubusercontent.com/9dbbafaae36011b9e83eb586ff655fbeb5aeb90157306921780ec0122bf07453/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4b4f424153536f6674776172652f6170692d636c69656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/KOBASSoftware/api-client-php)[![Total Downloads](https://camo.githubusercontent.com/1cd53ecf5ffbf7b9a629ca328f028923cf8e2f54184af7fcf175bc369e947f87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f6261732f6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/KOBASSoftware/api-client-php)

Signs API requests and allows interaction via cURL methods.

Example
-------

[](#example)

```
/**
 * Setup
 */
$companyId = 0000;// company id provided by Kobas
$clientId = '';// client id provided by Kobas
$clientSecret = '';// client secret provided by Kobas
$clientScope = ''; // client scope provided by Kobas

$provider = new \Kobas\APIClient\Auth\Provider($companyId, $clientId, $clientSecret, $clientScope);
$client = new \Kobas\APIClient\Client($provider);

/**
 * Usage
 */
$response = $client->get('customer/search', ['email' => 'example@example.com']);
echo json_encode($response, JSON_PRETTY_PRINT);
```

Client Functions
----------------

[](#client-functions)

get($route, $params = array(), $headers = array())
--------------------------------------------------

[](#getroute-params--array-headers--array)

Sends a HTTP GET Request to the route provided.

post($route, $params = array(), $headers = array())
---------------------------------------------------

[](#postroute-params--array-headers--array)

Sends a HTTP POST Request to the route provided.

put($route, $params = array(), $headers = array())
--------------------------------------------------

[](#putroute-params--array-headers--array)

Sends a HTTP PUT Request to the route provided.

delete($route, $params = array(), $headers = array())
-----------------------------------------------------

[](#deleteroute-params--array-headers--array)

Sends a HTTP DELETE Request to the route provided.

getRequestInfo()
----------------

[](#getrequestinfo)

Returns the result of `curl_getinfo()`on the last request made as an array.

setAPIBaseURL($url)
-------------------

[](#setapibaseurlurl)

Allows over-riding the base URL (only really needed for development)

setAPIVersion($version)
-----------------------

[](#setapiversionversion)

Allows over-riding of the API version. Might be useful in future?

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 91.8% 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 ~220 days

Recently: every ~305 days

Total

9

Last Release

1550d ago

Major Versions

1.2 → 2.02018-10-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/94ac0ec318be353da4f3451693838d0bd64c86cf8b3aa242d2314e574d169a39?d=identicon)[Seanmcn](/maintainers/Seanmcn)

---

Top Contributors

[![seanmcn](https://avatars.githubusercontent.com/u/1639126?v=4)](https://github.com/seanmcn "seanmcn (45 commits)")[![aleeeftw](https://avatars.githubusercontent.com/u/7444008?v=4)](https://github.com/aleeeftw "aleeeftw (3 commits)")[![alistairjackman](https://avatars.githubusercontent.com/u/316355?v=4)](https://github.com/alistairjackman "alistairjackman (1 commits)")

---

Tags

apiapi-clientkobaskobas-apiapiclientoauth2kobas

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kobas-api-client/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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