PHPackages                             datto/json-rpc-simple - 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. datto/json-rpc-simple

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

datto/json-rpc-simple
=====================

Request-to-class mapping extension for JSON-RPC library

4.0.1(10y ago)517.8k↑233.3%43LGPL-3.0PHP

Since Dec 15Pushed 10y ago3 watchersCompare

[ Source](https://github.com/datto/php-json-rpc-simple)[ Packagist](https://packagist.org/packages/datto/json-rpc-simple)[ Docs](http://www.datto.com)[ RSS](/packages/datto-json-rpc-simple/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (3)Used By (3)

JSON-RPC Simple Mapper
======================

[](#json-rpc-simple-mapper)

This is a request-to-class mapping extension for the [php-json-rpc](https://github.com/datto/php-json-rpc) library. Its purpose is to eliminate the need to write manual mapping functions for API endpoints by providing an automatic mapping of the JSON-RPC `method` and `params` arguments to a matching PHP class, method and parameters.

Examples
--------

[](#examples)

First write an API end point:

```
