2017 © Pedro Peláez
 

library retrorcon

A PHP library to communicate with emulators adhering to the RetroRCON standard

image

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

The README.md

Latest Stable Version License, (*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

  1. Install and configure the PHP gRPC extension
  2. Install and configure the PHP Protobuf extension
  3. Install and learn how to use composer
  4. Add the composer package to your project by running composer require ewout/retrorcon
  5. Make sure to include composer's autoloader
  6. 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);
}

The Versions

17/06 2018

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

17/06 2018

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

16/06 2018

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