2014-02-24, 15:23
When I started working on XBMC Video Server I realized that there weren't any good JSON-RPC clients for PHP. While it's never fun to partially reinvent the wheel I decided to do it anyway, and today I consider the wheel finished. I'm posting about it here so that others don't reinvent the wheel unnecessarily.
https://github.com/Jalle19/simple-json-rpc-client
Features:
See the README.md on Github on how to use it. It comes with a HTTP POST client implementation which works for communicating with XBMC. If that doesn't cut it for you there's a simple interface (three methods) you can use to implement your own client (e.g. a HTTP GET client).
https://github.com/Jalle19/simple-json-rpc-client
Features:
- Modern (available on Packagist) and very easy to use
- Fully compliant with the JSON-RPC 2.0 specification
- Fully tested (some edge cases missing, 90% test coverage)
See the README.md on Github on how to use it. It comes with a HTTP POST client implementation which works for communicating with XBMC. If that doesn't cut it for you there's a simple interface (three methods) you can use to implement your own client (e.g. a HTTP GET client).