With the SRM daemon:

<?php
        
// UNIX domain sockets
        
$srm = new SRM ('/var/srm.socket');
        
// TCP/IP sockets
        
$srm = new SRM ('localhost'7777);

        
$srm->get_loaded();
?>


With Bananas:

<?php
        $binsearch 
= new SRMApp($srm'binsearch');
        
$binsearch->method('param1'2);
?>