phpBeans

phpBeans allows users to do RMI (Remote Method Invocations) in PHP. it is simple and easy to use. the phpBeans-project provides both, a server and client-class. additionally there is also a ruby-client available.

today providing remote services to third parties is an important thing. beside simple RSS-feeds, you can provide objects to users, so they can integrate the power of complex engines into their projects, without installing them on their machine. advantages are clear: centralized engines, which make updates unnecessary, because the user always uses the newest code. additionally phpBeans is free and lightweight.

client-example:

<?php
//including class
include_once('Bean.php');
//creating client
$client = new PHP_Bean_Client('localhost',3843,2);
//pointer to server-object
$server =& $client->getObject('server');
//calling a method
echo $server->uptime();
//disconnect
$client->disconnect();
?>

related:
phpBeans
Wikipedia RMI
Wikipedia RPC

Tuesday, 09. May 2006 • trackback url

Add Comment

( to reply to a comment, click the reply link next to the comment )

Comment Title:
Your Name:
Email Address:
Make Public?
Website:
Make Public?

Comment:


Allowed XHTML tags : a, b, i, strong, code, acrynom, blockquote, abbr. Linebreaks will be converted automatically.


Captcha:

captcha image

please type the content of the above image into the following form-field: