2017 © Pedro Peláez
 

library php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

image

bubbladev/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  • Wednesday, March 15, 2017
  • by bubbla
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

php-jabber-rpc

Build Status Latest Stable Version Code Coverage Scrutinizer Code Quality Latest Unstable Version License, (*1)

About

mod_xmlrpc is a module for ejabberd, 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., (*2)

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:, (*3)

  • 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 and mod_muc_admin.erl source files., (*4)

Requirements

PHP >= 5.4

Installation

Composer

The recommended way to install library is composer. You can see package information on Packagist., (*5)

{
    "require": {
        "bubbladev/php-jabber-rpc": "*"
    }
}

Do not use composer?

Just clone the repository and take care about autoload for namespace GameNet., (*6)

Usage

Basic usage looks like this:, (*7)

    $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);

The Versions

15/03 2017

dev-master

9999999-dev https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

19/07 2016

1.3.5

1.3.5.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

19/07 2016

1.3.4

1.3.4.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

27/06 2016

1.3.3

1.3.3.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

27/06 2016

1.3.2

1.3.2.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

28/03 2016

1.3.1

1.3.1.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

28/03 2016

1.3.0

1.3.0.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

25/03 2016

1.2.0

1.2.0.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

17/03 2015

1.1.2

1.1.2.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

07/11 2014

1.1.1

1.1.1.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

17/09 2014

1.1.0

1.1.0.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd

17/09 2014

1.0.0

1.0.0.0 https://github.com/gamenet/php-jabber-rpc

PHP wrapper for ejabberd xml-rpc module

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Vadim Sabirov

xml wrapper xmpp jabber xml-rpc rpc ejabberd