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

ActiveLibrary[API Development](/categories/api)

brofist/json-api-client
=======================

A simple Json Api Client

v0.1.3(9y ago)03.2kMITPHPPHP &gt;=5.5

Since Sep 15Pushed 9y agoCompare

[ Source](https://github.com/mjacobus/php-json-api-client)[ Packagist](https://packagist.org/packages/brofist/json-api-client)[ RSS](/packages/brofist-json-api-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

Brofist Json Client
===================

[](#brofist-json-client)

Simple wrapper for Guzzle.

Code information:

[![Build Status](https://camo.githubusercontent.com/0cbc56f015198108b5aa175962ad1f46f57d6cdd74e1ea5ca22071a30422f8f4/68747470733a2f2f7472617669732d63692e6f72672f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mjacobus/php-json-api-client)[![Coverage Status](https://camo.githubusercontent.com/3ea0870ff94bb3184a53352f94e7191629f39dd8eb6299e6817012a6162cae31/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742f62616467652e706e67)](https://coveralls.io/r/mjacobus/php-json-api-client)[![Code Climate](https://camo.githubusercontent.com/99b916f27742cdc4eeeade81106b23da0731e947a52cd646118ae98d651bc9d3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742e706e67)](https://codeclimate.com/github/mjacobus/php-json-api-client)[![StyleCI](https://camo.githubusercontent.com/3f9193c956a15663df7e77432ecbb33794e403addeb7e6aad41ea39e59ab450d/68747470733a2f2f7374796c6563692e696f2f7265706f732f36383238383535392f736869656c64)](https://styleci.io/repos/68288559)

Scrutinizer

[![Code Coverage](https://camo.githubusercontent.com/94f0c0447c9db1845857044b6b83a990b641b37e34b3d772b0156a76aacc0cec/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/php-json-api-client/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eefa9fc1de93a8b55fe7a6e0d1663afa2f1c3f94f2244839c31a4bed4cfed7c1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/php-json-api-client/?branch=master)[![Build Status](https://camo.githubusercontent.com/0cffd8b625b199ed37a320438aaa9bbe5dfb0ff778ca8a8307258a85b0203334/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/php-json-api-client/build-status/master)

Package information:

[![Latest Stable Version](https://camo.githubusercontent.com/ef7f3a7329618cfe2d47176c375b6136d0d181182ee2da772fa15f5e5fc4b607/68747470733a2f2f706f7365722e707567782e6f72672f62726f666973742f6a736f6e2d6170692d636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/brofist/json-api-client)[![Total Downloads](https://camo.githubusercontent.com/dce46c1f88aeb5c3730345069e8a3e523ec22af3774319a94fca4c9f7f8cea17/68747470733a2f2f706f7365722e707567782e6f72672f62726f666973742f6a736f6e2d6170692d636c69656e742f646f776e6c6f6164732e737667)](https://packagist.org/packages/brofist/json-api-client)[![Latest Unstable Version](https://camo.githubusercontent.com/a4ab0c7e3cdf78ced67407c204f4f67526c0a14f3e1432fa964f2b5f5cd7334f/68747470733a2f2f706f7365722e707567782e6f72672f62726f666973742f6a736f6e2d6170692d636c69656e742f762f756e737461626c652e737667)](https://packagist.org/packages/brofist/json-api-client)[![License](https://camo.githubusercontent.com/ce64001b399d9321913faa873545a2e8b8731a19dc4440b4e16b2eb0e94e463a/68747470733a2f2f706f7365722e707567782e6f72672f62726f666973742f6a736f6e2d6170692d636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/brofist/json-api-client)[![Dependency Status](https://camo.githubusercontent.com/6ad3efcceaeb2042b21b7560c59005fee1804d0cafabaf6a40cd1b46b9f3d3ab/68747470733a2f2f67656d6e617369756d2e636f6d2f6261646765732f6769746875622e636f6d2f6d6a61636f6275732f7068702d6a736f6e2d6170692d636c69656e742e737667)](https://gemnasium.com/github.com/mjacobus/php-json-api-client)

Installing
----------

[](#installing)

### Installing via Composer

[](#installing-via-composer)

Append the lib to your requirements key in your composer.json.

```
composer require brofist/json-api-client
```

Usage
-----

[](#usage)

```
use Brofist\ApiClient\Json;

$client = new Json([
    'endpoint' => 'http://foo.bar/v1/blah',
    // optional
    'basicAuth' => ['username', 'password'],
]);

// basic usage:
$resources = $client->get('/resources', [
    'limit' => 100,
]);

$resources = $client->put('/resources/1', [
    'name' => 'foo',
]);

$resources = $client->post('/resources', [
    'name' => 'foo',
]);

// with optionally supplied custom options per-request:
$resources = $client->post(
    '/resources',
    ['name' => 'foo'],
    ['headers' => ['X-Request-Token' => 'e4d909c290d0fb1ca068ffaddf22cbd0']]
);
```

Issues/Features proposals
-------------------------

[](#issuesfeatures-proposals)

[Here](https://github.com/mjacobus/php-json-api-client/issues) is the issue tracker.

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

[](#contributing)

Only tested code will be accepted. Please follow fix the style guide.

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

### How to run the tests:

[](#how-to-run-the-tests)

```
./vendor/bin/phpunit
```

### To check the code standard run:

[](#to-check-the-code-standard-run)

```
# Fixes code
./vendor/bin/bro-code fix src
./vendor/bin/bro-code fix tests
```

License
-------

[](#license)

This software is distributed under the [MIT](MIT-LICENSE) license.

Authors
-------

[](#authors)

- [Marcelo Jacobus](https://github.com/mjacobus)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% 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 ~95 days

Total

4

Last Release

3291d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/226834?v=4)[Marcelo Jacobus](/maintainers/mjacobus)[@mjacobus](https://github.com/mjacobus)

---

Top Contributors

[![mjacobus](https://avatars.githubusercontent.com/u/226834?v=4)](https://github.com/mjacobus "mjacobus (23 commits)")[![pinkgothic](https://avatars.githubusercontent.com/u/17291121?v=4)](https://github.com/pinkgothic "pinkgothic (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M957](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1933.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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