Download the PHP package devedge/xmlrpc-server without Composer
On this page you can find all versions of the php package devedge/xmlrpc-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devedge/xmlrpc-server
More information about devedge/xmlrpc-server
Files in devedge/xmlrpc-server
Package xmlrpc-server
Short Description A PHP Library to create XML-RPC Servers
License MIT
Informations about the package xmlrpc-server
devedge/xmlrpc-server
A library to provide services through xml-rpc
License
MIT Style, see LICENSE.txt
Notes
currently this requires the current Psr DRAFT for a caching standard, this is supposed to be replaced by using the interface provided once php-fig has released the real standard. Until then this package will depend on devedge/stubs, which includes a copy of the psr interface as well as a null implementation of that and psr/log.
Usage
Right now this library is pretty limited in what it can do - which also means that usage is extremly easy. This package will give you the tools that you need to integrate and xmlrpc service into your application.
an simple example script, that could be run by any webserver would be:
Other stuff you need to know about Devedge\XmlRpc\Server:
- it has a method called setLogger() which takes an psr/log compatible logger as an argument, and then will cause theserver to log various things to that logger.
- it has a boolean member named exceptionOnError (which defaults to false). If this is set to true Exceptions thrown in the handler / service will not be converted to xmlrpc faults. In that case the handle() method will rethrow the Exception originally thrown
Other stuff you need to know about Devedge\XmlRpc\Server\Handlers\SimpleHandler:
- SimpleHandler is exactly what the name sais, it is an extremly simple handler. It will for example not check the signature of the method called. If a request for a specific method is send, it will try to call this method with all arguments that it got.
You can easy extend functionality (signature check, caching etc.) by writing your own handlers (as long as you implement HandlerInterface).
Links
All versions of xmlrpc-server with dependencies
devedge/xmlrpc-common Version 0.2.*
psr/cache Version 1.0.0
devedge/stubs Version 1.0.*