PHPackages                             gamenet/php-jabber-rpc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. gamenet/php-jabber-rpc

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

gamenet/php-jabber-rpc
======================

PHP wrapper for ejabberd xml-rpc module

1.3.4(9y ago)1921.0k↓100%13[2 issues](https://github.com/gamenet/php-jabber-rpc/issues)MITPHPPHP &gt;=5.4.0

Since Sep 17Pushed 9y ago4 watchersCompare

[ Source](https://github.com/gamenet/php-jabber-rpc)[ Packagist](https://packagist.org/packages/gamenet/php-jabber-rpc)[ Docs](https://github.com/gamenet/php-jabber-rpc)[ RSS](/packages/gamenet-php-jabber-rpc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (11)Used By (0)

php-jabber-rpc
==============

[](#php-jabber-rpc)

[![Build Status](https://camo.githubusercontent.com/6f65e8ade8256e250e28deb82f52cb07bc4c71b0b4480370abafbb66fb711dc4/68747470733a2f2f7472617669732d63692e6f72672f67616d656e65742f7068702d6a61626265722d7270632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gamenet/php-jabber-rpc)[![Latest Stable Version](https://camo.githubusercontent.com/0a153fa2bea16c881dc5ab8be4a695af53365fbe7bd867f750bac8534a37019f/68747470733a2f2f706f7365722e707567782e6f72672f67616d656e65742f7068702d6a61626265722d7270632f762f737461626c652e706e67)](https://packagist.org/packages/gamenet/php-jabber-rpc)[![Code Coverage](https://camo.githubusercontent.com/93134361c0a62efe4c6ffb36eac36f4d98035d9fe21e276ccff14adc4f357d82/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67616d656e65742f7068702d6a61626265722d7270632f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e39a8fec67621c674d477f24403fb5954eab91fcca23dbe1c4ea7ede6263531b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67616d656e65742f7068702d6a61626265722d7270632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/?branch=master)[![Latest Unstable Version](https://camo.githubusercontent.com/71425d1196f80f1f0e18a02bd74bc35caa3b94291cd4801ec94d7fcda0eee46c/68747470733a2f2f706f7365722e707567782e6f72672f67616d656e65742f7068702d6a61626265722d7270632f762f756e737461626c652e706e67)](https://packagist.org/packages/gamenet/php-jabber-rpc)[![License](https://camo.githubusercontent.com/49652a1114928c883395719c996944c217a8af7459cd2a3fe359796bf1552f2b/68747470733a2f2f706f7365722e707567782e6f72672f67616d656e65742f7068702d6a61626265722d7270632f6c6963656e73652e706e67)](https://packagist.org/packages/gamenet/php-jabber-rpc)

About
=====

[](#about)

[mod\_xmlrpc](http://www.ejabberd.im/ejabberd+integration+with+XMLRPC+API) is a module for [ejabberd](http://www.ejabberd.im/), a XMPP/Jabber server written in Erlang. It starts a XML-RPC server and waits for external requests. Implemented calls include statistics and user administration. This allows external programs written in any language like websites or administrative tools to communicate with ejabberd to get information or to make changes without the need to know ejabberd internals.

One example usage is a corporate site in PHP that creates a Jabber user every time a new user is created on the website. Some benefits of interfacing with the Jabber server by XML-RPC instead of modifying directly the database are:

- external programs are more simple and easy to develop and debug
- can communicate with a server in a different machine, and even on Internet

This library is an simple wrapper above php xmlrpc module to simplify ejabberd mod\_xmlrpc usage from php. PHP code based on [mod\_admin\_extra.erl](https://github.com/processone/ejabberd-contrib/blob/master/mod_admin_extra/src/mod_admin_extra.erl)and [mod\_muc\_admin.erl](https://github.com/processone/ejabberd-contrib/blob/master/mod_muc_admin/src/mod_muc_admin.erl)source files.

Requirements
------------

[](#requirements)

```
PHP >= 5.4

```

Installation
------------

[](#installation)

### Composer

[](#composer)

The recommended way to install library is [composer](http://getcomposer.org). You can see [package information on Packagist](https://packagist.org/packages/gamenet/php-jabber-rpc).

```
{
	"require": {
		"gamenet/php-jabber-rpc": "*"
	}
}
```

### Do not use composer?

[](#do-not-use-composer)

Just clone the repository and take care about autoload for namespace `GameNet`.

Usage
=====

[](#usage)

Basic usage looks like this:

```
    $rpc = new \GameNet\Jabber\RpcClient([
        'server' => 'http://127.0.0.1:4560',
        'host' => 'j.gamenet.ru',
        'debug' => false,
    ]);

    //Create 2 new users with name `Ivan` and `Petr` with password `someStrongPassword`
    $rpc->createUser('Ivan', 'someStrongPassword');
    $rpc->createUser('Petr', 'someStrongPassword');

    // Add each other in the contact list with group 'Friend'
    $rpc->addRosterItem('Ivan', 'Petr', 'Petr Ivanov', 'Friend');
    $rpc->addRosterItem('Petr', 'Ivan', 'Ivan Petrov', 'Friend');

    // Get contact list Ivan
    $contacts = $rpc->getRoster($username);
```

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 55.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Recently: every ~28 days

Total

10

Last Release

3581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f654b32d3633dcd767ba2aeb2fa2c4af845cd70d270f2971f9d5e4ee8d9c9c0a?d=identicon)[misterion](/maintainers/misterion)

---

Top Contributors

[![misterion](https://avatars.githubusercontent.com/u/196737?v=4)](https://github.com/misterion "misterion (21 commits)")[![pr0head](https://avatars.githubusercontent.com/u/7290631?v=4)](https://github.com/pr0head "pr0head (17 commits)")

---

Tags

xmlrpcwrapperxml-rpcxmppjabberejabberd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gamenet-php-jabber-rpc/health.svg)

```
[![Health](https://phpackages.com/badges/gamenet-php-jabber-rpc/health.svg)](https://phpackages.com/packages/gamenet-php-jabber-rpc)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M849](/packages/jms-serializer)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M621](/packages/jms-serializer-bundle)[sabre/xml

sabre/xml is an XML library that you may not hate.

52832.2M131](/packages/sabre-xml)[darkaonline/ripcord

RPC client and server around PHP's xmlrpc library

35897.7k8](/packages/darkaonline-ripcord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
