Search by

skorlok / dedicated-server-api

Skorlok

XML-RPC library to connect to ManiaPlanet server

Package info

github.com/Skorlok/dedicated-server-api

Homepage

Forum

pkg:composer/skorlok/dedicated-server-api

Statistics

Installs: 51

Dependents: 1

Suggesters: 0

Stars: 0

1.0.0 2026-10-29 22:04 UTC

This package is auto-updated.

Last update: 2026-10-29 22:08:56 UTC


README

Latest Stable Version License

This library allows you to connect to a ManiaPlanet dedicated server through its XML-RPC interface.

This package is a fork of maniaplanet/dedicated-server-api by Nadeo, maintained exclusively for eXpansion. It uses classes from eXpansion and ManiaLive, so it can't be used on its own. The namespace is unchanged (Maniaplanet\), so it can't be installed together with maniaplanet/dedicated-server-api.

Installation

You don't need to install it: it is installed by Composer as a dependency of eXpansion.

Requirements:

  • PHP >= 5.3
  • ext-mbstring
  • ext-simplexml
  • ext-xmlrpc is optional: without it, a pure PHP implementation of XML-RPC is used.

Usage

In an eXpansion or ManiaLive plugin, the connection to the dedicated server is available in $this->connection. Each method of Maniaplanet\DedicatedServer\Connection is an XML-RPC method of the dedicated server:

$this->connection->chatSendServerMessage('Hello everyone!');

foreach ($this->connection->getPlayerList() as $player) {
    echo $player->login, PHP_EOL;
}

License

LGPL v3, see LICENSE. Original work by Nadeo.