PHPackages                             kraz/json-rpc-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. [HTTP &amp; Networking](/categories/http)
4. /
5. kraz/json-rpc-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kraz/json-rpc-client
====================

JSON-RPC 2.0 Client (PSR-17/18)

1.0.0(1mo ago)068↓100%1MITPHPPHP &gt;=8.4CI passing

Since May 8Pushed 3w agoCompare

[ Source](https://github.com/kraz/json-rpc-client)[ Packagist](https://packagist.org/packages/kraz/json-rpc-client)[ RSS](/packages/kraz-json-rpc-client/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (1)

JSON-RPC 2.0 Client (PSR-17/18)
===============================

[](#json-rpc-20-client-psr-1718)

[![CI](https://github.com/kraz/json-rpc-client/actions/workflows/ci.yml/badge.svg)](https://github.com/kraz/json-rpc-client/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/44e04b56b5ad59f243fe6fdc16e15aa9312f98e42b7955738e6b6017dc4b2ee2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72617a2f6a736f6e2d7270632d636c69656e74)](https://packagist.org/packages/kraz/json-rpc-client)[![GitHub license](https://camo.githubusercontent.com/2f76304bc3e765a3c77a05b49d76965213dff9f959412f22ededaa4d73e2d5f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b72617a2f6a736f6e2d7270632d636c69656e74)](LICENSE)

Lightweight implementation of JSON-RPC 2.0 client which can use any HTTP [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible client in combination with any [PSR-17](https://www.php-fig.org/psr/psr-17/) compatible HTTP factory.

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

[](#installation)

```
composer require kraz/json-rpc-client
```

Some compatible HTTP clients
============================

[](#some-compatible-http-clients)

- [symfony/http-client](https://packagist.org/packages/symfony/http-client)
- [guzzlehttp/guzzle](https://packagist.org/packages/guzzlehttp/guzzle)
- [php-http/httplug](https://packagist.org/packages/php-http/httplug)
- [php-http/curl-client](https://packagist.org/packages/php-http/curl-client)
- [php-http/mock-client](https://packagist.org/packages/php-http/mock-client)

License
-------

[](#license)

This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance95

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58638bf409738592e29453577dc33e51e5b97b93b01a6a3ddd32fd3f1e152f41?d=identicon)[kraz1](/maintainers/kraz1)

---

Top Contributors

[![kraz](https://avatars.githubusercontent.com/u/1006092?v=4)](https://github.com/kraz "kraz (5 commits)")

---

Tags

ddddomainjson-rpcpsr-17psr-18json-rpc

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kraz-json-rpc-client/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[elastic/transport

HTTP transport PHP library for Elastic products

2022.9M9](/packages/elastic-transport)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[claude-php/claude-php-sdk

A universal, framework-agnostic PHP SDK for the Anthropic Claude API with PSR compliance

14440.4k2](/packages/claude-php-claude-php-sdk)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

155.7k](/packages/art4-requests-psr18-adapter)[vultr/vultr-php

The Official Vultr API PHP Wrapper.

2346.5k1](/packages/vultr-vultr-php)

PHPackages © 2026

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