Which PHP RPC (XML or JSON) library have you successfully used?

放肆的年华 提交于 2019-12-24 01:05:02

问题


Which PHP RPC (XML or JSON) library have you successfully used?

I have done some research but haven't been able to find one library that stands out from the others.

I've found the following:

XML-RPC for PHP

XML_RPC (PEAR)

JSON-RPC PHP

And a few others that either don't look very active or mature.


回答1:


I've used XML_RPC (PEAR) successfully. I'm not personally a fan of the xml-rpc "way" but the library was simple to use and we have a few dozen clients using it daily and pulling a fair amount of data over the wire and we've never had any problems.

We aren't pushing the envelope with this at all, in any way, but i'm very happy with the library since I don't even think about it anymore. The library isn't elegant or anything but neither is php or rpc, right?




回答2:


I've written a simple XML-RPC library for PHP 5, called Ripcord. You can download it at http://ripcord.googlecode.com/. It is as easy to use as I could make it, even for the more advanced features like system.multicall. Give it a try.




回答3:


we've done a very RPC robust library, following with the RPC specs 100%. You can switch between JSON-RPC-2.0 and JSONP on the fly and it supports also batch requests, signed request and service method introspection basing on Dojo's RPC proposals.

  1. XApp-RPC core package https://github.com/XApp-Studio/xapp-Rpc
  2. Example usage : xappcommander.com

we've done this because all what was around didn't meet our license/quality requirements. Have fun.



来源:https://stackoverflow.com/questions/606844/which-php-rpc-xml-or-json-library-have-you-successfully-used

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!