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

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

mezon/custom-client
===================

Small custom client routine

1.0.15(4y ago)38.4k15MITPHPPHP &gt;=7.2.0CI failing

Since Feb 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/alexdodonov/mezon-custom-client)[ Packagist](https://packagist.org/packages/mezon/custom-client)[ Docs](https://github.com/alexdodonov/mezon-custom-client)[ RSS](/packages/mezon-custom-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (16)Used By (5)

Custom client for external services
===================================

[](#custom-client-for-external-services)

[![Build Status](https://camo.githubusercontent.com/29c6b0d4a517b4d0842c82913170da086301f2650ee759d40e8193862b4e386a/68747470733a2f2f7472617669732d63692e636f6d2f616c6578646f646f6e6f762f6d657a6f6e2d637573746f6d2d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/alexdodonov/mezon-custom-client) [![codecov](https://camo.githubusercontent.com/ad4ae2cf265ffba0b845c0abda9635ee36b8d3f4b7468f26531ba2d09f712c3a/68747470733a2f2f636f6465636f762e696f2f67682f616c6578646f646f6e6f762f6d657a6f6e2d637573746f6d2d636c69656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alexdodonov/mezon-custom-client) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c1d7a8628449ba6727ff99a97cf1f18aacac55c3a1920c40a403354856d20774/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c6578646f646f6e6f762f6d657a6f6e2d637573746f6d2d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexdodonov/mezon-custom-client/?branch=master)

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

[](#installation)

Just print

```
composer require mezon/custom-client

```

Reasons to use
--------------

[](#reasons-to-use)

- it will help ypu to create REST API clients lightning fast! Just look at this [example of creation Jira API Client](https://github.com/alexdodonov/mezon-jira-client)
- is has 100% code coverage
- it has 10.0 points on Scrutinizer

Sending requests
----------------

[](#sending-requests)

You can send different types of requests.

```
$client = new \Mezon\CustomClient\CustomClient();

// sending get request
$client->sendGetRequest('https://your-api/end/point/?param=1');

// sending post request
$client->sendPostRequest('https://your-api/end/point/', ['param' => 1]);

// sending put request
$client->sendPutRequest('https://your-api/end/point/', ['param' => 1]);

// sending delete request
$client->sendDeleteRequest('https://your-api/end/point/', ['param' => 1]);
```

Idempotency keys
----------------

[](#idempotency-keys)

To be sure that your data modification request are executed only once - use idempotency keys.

They are passed in the headers and can be set like this:

```
$client->setIdempotencyKey('some hash, like md5 or GUID or something like that');
```

After that in all of your requests the header Idempotency-Key will be added.

Note that this key will not be dropped automatically. You shold drop it manually:

```
$client->setIdempotencyKey(''); // this call drops the key
```

Learn more
==========

[](#learn-more)

More information can be found here:

[Twitter](https://twitter.com/mezonphp)

[dev.to](https://dev.to/alexdodonov)

[Slack](https://join.slack.com/t/mezon-framework/signup?x=x-p1148081653955-1171709616688-1154057706548)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.3% 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 ~49 days

Recently: every ~114 days

Total

15

Last Release

1625d ago

### Community

Maintainers

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

---

Top Contributors

[![alexdodonov](https://avatars.githubusercontent.com/u/14943896?v=4)](https://github.com/alexdodonov "alexdodonov (36 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mezon-custom-client/health.svg)

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

###  Alternatives

[mediawiki/babel

Users can easily indicate their language proficiency on their user page

116.4k](/packages/mediawiki-babel)

PHPackages © 2026

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