PHPackages                             jeyroik/extas-http-jsonrpc - 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. jeyroik/extas-http-jsonrpc

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

jeyroik/extas-http-jsonrpc
==========================

Extas http jsonrpc package

0.1.2(5y ago)04432PHP

Since Jul 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jeyroik/extas-http-jsonrpc)[ Packagist](https://packagist.org/packages/jeyroik/extas-http-jsonrpc)[ RSS](/packages/jeyroik-extas-http-jsonrpc/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (5)Used By (2)

[![tests](https://github.com/jeyroik/extas-http-jsonrpc/workflows/PHP%20Composer/badge.svg?branch=master&event=push)](https://github.com/jeyroik/extas-http-jsonrpc/workflows/PHP%20Composer/badge.svg?branch=master&event=push)[![codecov.io](https://camo.githubusercontent.com/1826cd052da0d24dfb48a5a7936e2e672b6379718ebd96e921a84f16754f06f3/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d687474702d6a736f6e7270632f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/1826cd052da0d24dfb48a5a7936e2e672b6379718ebd96e921a84f16754f06f3/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d687474702d6a736f6e7270632f636f7665726167652e7376673f6272616e63683d6d6173746572)[![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![](https://camo.githubusercontent.com/b826a10f9b27d567eb82c5f37e6c313d9811fd5fa9e87e10f8c3bc513cdc0a77/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64613737373637633165393237373432653334342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/jeyroik/extas-http-jsonrpc/maintainability)[![Extas Installer v3](https://camo.githubusercontent.com/84fa12b6b5945df440cd1eada219bbced80060f2595ae4bcbedb6a8fac03acee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f696e7374616c6c65722d76332d677265656e)](https://github.com/jeyroik/extas-installer/ "Extas Installer v3")[![Latest Stable Version](https://camo.githubusercontent.com/c350caa152cb15879a7c5190726f1021f053518dc1e285b6f94c5273b808cdb5/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d687474702d6a736f6e7270632f76)](//packagist.org/packages/jeyroik/extas-jsonrpc)[![Total Downloads](https://camo.githubusercontent.com/a7e960a134daa94b48bfb21b4e456b7cea74b2e7eda363da7354b9b29fb3ebe3/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d687474702d6a736f6e7270632f646f776e6c6f616473)](//packagist.org/packages/jeyroik/extas-jsonrpc)[![Dependents](https://camo.githubusercontent.com/04dd7fdebe75db324789e9085b41bd0e074e3a4249312b94c269a4b1797e2769/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d687474702d6a736f6e7270632f646570656e64656e7473)](//packagist.org/packages/jeyroik/extas-jsonrpc)

Описание
========

[](#описание)

Пакет содержит базовые модели для работы с JSON RPC.

Использование
=============

[](#использование)

```
use extas\interfaces\http\IHasJsonRpcRequest;
use extas\components\Item;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use extas\interfaces\http\IHasJsonRpcResponse;
use extas\components\http\THasJsonRpcRequest;
use extas\components\http\THasJsonRpcResponse;

/**
 * @var RequestInterface $request
 * @var ResponseInterface $response
 */

$item = new class ([
    IHasJsonRpcRequest::FIELD__PSR_REQUEST => $request,
    IHasJsonRpcResponse::FIELD__PSR_RESPONSE => $response
]) extends Item {
    use THasJsonRpcResponse;
    use THasJsonRpcRequest;

    protected function getSubjectForExtension() : string{
        return 'test';
    }
};

print_r(
    $item->successResponse(
        $item->getJsonRpcRequest()->getId(),
        [
            //some data
        ]
    )
);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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

Every ~30 days

Total

4

Last Release

2034d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aaec5c4bade6ab2b5d1a0f7d97ab4e0ff2ce83937f76499b2888ad16cde5e04?d=identicon)[jeyroik](/maintainers/jeyroik)

---

Top Contributors

[![jeyroik](https://avatars.githubusercontent.com/u/6348124?v=4)](https://github.com/jeyroik "jeyroik (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeyroik-extas-http-jsonrpc/health.svg)

```
[![Health](https://phpackages.com/badges/jeyroik-extas-http-jsonrpc/health.svg)](https://phpackages.com/packages/jeyroik-extas-http-jsonrpc)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M318](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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