PHPackages                             mtoolkit/mtoolkit-network - 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. [Framework](/categories/framework)
4. /
5. mtoolkit/mtoolkit-network

ActiveLibrary[Framework](/categories/framework)

mtoolkit/mtoolkit-network
=========================

The network module of MToolkit framework

0.0.3(9y ago)021LGPL-3.0+PHPPHP &gt;=5.3.0

Since May 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mtoolkit/mtoolkit-network)[ Packagist](https://packagist.org/packages/mtoolkit/mtoolkit-network)[ Docs](http://mtoolkit.github.io/mtoolkit/)[ RSS](/packages/mtoolkit-mtoolkit-network/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

MToolkit - Network
==================

[](#mtoolkit---network)

The network module of [MToolkit](https://github.com/mtoolkit/mtoolkit) framework.

RPC-JSON
--------

[](#rpc-json)

JSON-RPC is a remote procedure call protocol encoded in JSON

### Server

[](#server)

Create a RPC-JSON server is simple. This example implements an web service to sum 2 number:

```
class RPCJsonWebService extends MRPCJsonWebService
{
    public function __construct(){}

    public function sum($data)
    {
        $response = new MRPCJsonResponse();
        $response->setId( $this->getRequest()->getId() );
        $response->setResult( array( 'sum' => $data['a'] + $data['b'] ) );
        $this->setResponse( $response );
    }
}
```

### Client

[](#client)

This is the client of the above example:

```
$request = new MRPCJsonRequest();
$request->setId(1)
    ->setMethod('sum')
    ->setParams( array('a'=>1, 'b'=>2) );

$client = new MRPCJsonClient($url);
$client->call($request);

$response = $client->getResponse();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.7% 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 ~46 days

Total

3

Last Release

3615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16403140?v=4)[MToolkit framework project](/maintainers/mtoolkit)[@mtoolkit](https://github.com/mtoolkit)

---

Top Contributors

[![mtoolkit](https://avatars.githubusercontent.com/u/16403140?v=4)](https://github.com/mtoolkit "mtoolkit (17 commits)")[![MpStyle](https://avatars.githubusercontent.com/u/527046?v=4)](https://github.com/MpStyle "MpStyle (11 commits)")

---

Tags

phpframeworklibrarySimplefastfreenettoolkitqtweb framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mtoolkit-mtoolkit-network/health.svg)

```
[![Health](https://phpackages.com/badges/mtoolkit-mtoolkit-network/health.svg)](https://phpackages.com/packages/mtoolkit-mtoolkit-network)
```

###  Alternatives

[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

924.2k3](/packages/digitalstars-simplevk)[usbac/wolff-framework

Web development made just right

381.2k1](/packages/usbac-wolff-framework)

PHPackages © 2026

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