With Abstract Xml-Rpc Server class you will be able to create a server inside any PHP project with just one line of code.

In addition to having an XML-RPC server up with 1 line of code, you will also get a fully functional XML-RPC client class automatically. Client class will be generated when you visit the XML-RPC server URL endpoint with an additional ?client parameter in the URL.

Most Popular

$29.99

Developer Licence

Example

Lets say we have created a file called server.php which can be accessed on the URL http://example.com/server.php

This is what server.php looks like:

/* On this page we will create xmlrpc server from class Test */
require_once("abstractxmlrpcserver.class.php");
/* first define class, ofcorse it can be defined anywhere */
class Test {
public static function run() { print "Works\n"; }
private function example() { print "I'm private and should not be in xmlrpc server.\n"; }
public function bob() { print "Hey! My name is Bob."; }
}
/* now we will create instance of class Test */
$test = new Test();
/* and finaly create xmlrpc server */
AbstractXmlRpcServer::createServer($test /*instance of Test class*/);
/* DONE! */
/* if you visit this url with added ?client at the end
for example http://example.com/primer.php?client
you will get full client php class which can be used
to access this xmlrpc server */

If we were to visit http://example.com/server.php?client we would get fully functional client XML-RPC class. This is the on-page response we would get from visiting mentioned URL: