library retrorcon
        A PHP library to communicate with emulators adhering to the RetroRCON standard
    
            
                
                    
                    
                    
                    
                        
                            
    
        
        
            ewout/retrorcon
            A PHP library to communicate with emulators adhering to the RetroRCON standard
         
     
    
        
            -  Sunday, June 17, 2018
-  by ewout
-  Repository
-  1 Watchers
-  1 Stars
-  10 Installations
 
    
        
                            - PHP
-  0 Dependents
-  0 Suggesters
-  0 Forks
-  0 Open issues
-  3 Versions
-  0 % Grown
 
 
    
        
            
    
    
    
 
 , (*1)
, (*1)
retrorcon-php
This PHP library is used to get information such as users online, refreshing users' look and doing housekeeping activity such as e.g. sending room alerts by communicating with emulators adhering to the RetroRCON standard., (*2)
The project requires PHP 7.2 or higher and uses composer's autoloader following the PSR-4 standard., (*3)
How to use it
- 
Install and configure the PHP gRPC extension
- 
Install and configure the PHP Protobuf extension
- 
Install and learn how to use composer
- Add the composer package to your project by running composer require ewout/retrorcon
- Make sure to include composer's autoloader
- Look at the snippet below on how to use the library
Usage
<?php
// Include the Composer autoloader
include 'vendor/autoload.php';
// Shortcut for the FQN
use RetroRCON\RemoteConnection;
// Create new RCON instance
$rcon = new RemoteConnection(
    [
        'host' => '127.0.0.1',
        'port' => 12309
    ]
);
// Get online user count
$onlineCount = $rcon->getOnlineCount();
// Is user 'Ewout' online?
$isOnline = $rcon->isUserOnline("Ewout");
// Supports user ID too
$userId = 1;
$isOnline = $rcon->isUserOnline($userId);
// Refresh user figure if online (only meant to be used when figure/motto changed)
if ($isOnline) {
    $rcon->refreshLook($userId);
}
         
     
 
    
        
            
                                    
                        
                        
                        
                            dev-master
                            9999999-dev
                                                        
                                A PHP library to communicate with emulators adhering to the RetroRCON standard
                                
                                                                     
                                    Sources
                                                                                                     
                                    Download
                                                                
                                
                                                                            AGPL-3.0-or-later
                                    
                                
                                                                    The Requires
                                    
                                     
                                                                                            
                            
                                                                    
                                        
by 
                                                                                             
                                                                                                                                    Ewout van Mansom
                                                                                    
                                    
                                
                            
                            
                                
                            
                         
                     
                                    
                        
                        
                        
                            1.1.0
                            1.1.0.0
                                                        
                                A PHP library to communicate with emulators adhering to the RetroRCON standard
                                
                                                                     
                                    Sources
                                                                                                     
                                    Download
                                                                
                                
                                                                            AGPL-3.0-or-later
                                    
                                
                                                                    The Requires
                                    
                                     
                                                                                            
                            
                                                                    
                                        
by 
                                                                                             
                                                                                                                                    Ewout van Mansom
                                                                                    
                                    
                                
                            
                            
                                
                            
                         
                     
                                    
                        
                        
                        
                            1.0.0
                            1.0.0.0
                                                        
                                A PHP library to communicate with emulators adhering to the RetroRCON standard
                                
                                                                     
                                    Sources
                                                                                                     
                                    Download
                                                                
                                
                                                                            AGPL-3.0-or-later
                                    
                                
                                                                    The Requires
                                    
                                     
                                                                                            
                            
                                                                    
                                        
by 
                                                                                             
                                                                                                                                    Ewout van Mansom