phpxmlrpc / jsonrpc
A php library for building jsonrpc clients and servers
1.0.0-beta2
2024-04-15 12:35 UTC
Requires
- php: ^5.4.0 || ^7.0 || ^8.0
- ext-json: *
- phpxmlrpc/phpxmlrpc: ^4.10.1
Requires (Dev)
- ext-curl: *
- phpunit/phpunit: ^4.8 || ^5.0 || ^8.5.12
- phpunit/phpunit-selenium: *
- yoast/phpunit-polyfills: *
Suggests
- ext-curl: Needed for HTTPS and HTTP 1.1 support, NTLM Auth etc...
- ext-mbstring: Needed to allow reception of requests/responses in character sets other than ASCII,LATIN-1,UTF-8
- ext-zlib: Needed for sending compressed requests and receiving compressed responses, if cURL is not available
This package is auto-updated.
Last update: 2024-10-15 16:54:17 UTC
README
A php library for building json-rpc clients and servers.
Originally bundled as part of the phpxmlrpc/extras package.
At the moment it only (partially) supports version 1.0 of the JSON-RPC protocol. Features still to be implemented are: multicall, notifications, peer-to-peer communication.
Main features
- Support for creating both jsonrpc clients and servers
- Support for http features including compression of both requests and responses, cookies, proxies, basic auth, https, ntlm auth and keepalives with the php cURL extension
- Optional validation of parameter types of incoming jsonrpc request
- Possibility to register existing php function or class methods as webservices, extracting value-added information from phpdoc comments
- Support for system.listMethods, system.methodHelp, system.multicall and system.getCapabilities methods
- Support for UTF8, Latin-1 and ASCII character encodings. With the php mbstring extension enabled, even more character sets are supported.
- A web based visual debugger is included with the library
Requirements
- PHP >= 5.4.0
- PHP Json extension
- phpxmlrpc/phpxmlrpc >= 4.10.1
Installation
Via Composer
License
Use of this software is subject to the terms in the license.txt file