{"id":15019082,"url":"https://github.com/gamenet/php-jabber-rpc","last_synced_at":"2025-10-24T03:30:24.731Z","repository":{"id":16695678,"uuid":"19452241","full_name":"gamenet/php-jabber-rpc","owner":"gamenet","description":"PHP wrapper for ejabberd xml-rpc module","archived":false,"fork":false,"pushed_at":"2016-10-22T18:47:46.000Z","size":52,"stargazers_count":18,"open_issues_count":2,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-26T20:55:59.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gamenet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-05T10:24:46.000Z","updated_at":"2017-12-02T21:13:46.000Z","dependencies_parsed_at":"2022-09-20T03:20:40.210Z","dependency_job_id":null,"html_url":"https://github.com/gamenet/php-jabber-rpc","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamenet%2Fphp-jabber-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamenet%2Fphp-jabber-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamenet%2Fphp-jabber-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamenet%2Fphp-jabber-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamenet","download_url":"https://codeload.github.com/gamenet/php-jabber-rpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867139,"owners_count":16555821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:52:57.303Z","updated_at":"2025-10-24T03:30:19.469Z","avatar_url":"https://github.com/gamenet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-jabber-rpc #\n\n[![Build Status](https://travis-ci.org/gamenet/php-jabber-rpc.svg?branch=master)](https://travis-ci.org/gamenet/php-jabber-rpc)\n[![Latest Stable Version](https://poser.pugx.org/gamenet/php-jabber-rpc/v/stable.png)](https://packagist.org/packages/gamenet/php-jabber-rpc)\n[![Code Coverage](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/gamenet/php-jabber-rpc/?branch=master)\n[![Latest Unstable Version](https://poser.pugx.org/gamenet/php-jabber-rpc/v/unstable.png)](https://packagist.org/packages/gamenet/php-jabber-rpc)\n[![License](https://poser.pugx.org/gamenet/php-jabber-rpc/license.png)](https://packagist.org/packages/gamenet/php-jabber-rpc)\n\n# About #\n\n[mod_xmlrpc](http://www.ejabberd.im/ejabberd+integration+with+XMLRPC+API) is a module for [ejabberd](http://www.ejabberd.im/),\na XMPP/Jabber server written in Erlang. It starts a XML-RPC server and waits for external requests. Implemented calls include\nstatistics and user administration. This allows external programs written in any language like websites or administrative tools\nto communicate with ejabberd to get information or to make changes without the need to know ejabberd internals.\n\nOne example usage is a corporate site in PHP that creates a Jabber user every time a new user is created on the website. Some\n benefits of interfacing with the Jabber server by XML-RPC instead of modifying directly the database are:\n\n * external programs are more simple and easy to develop and debug\n * can communicate with a server in a different machine, and even on Internet\n\nThis library is an simple wrapper above php xmlrpc module to simplify ejabberd mod_xmlrpc usage from php. PHP code based\non [mod_admin_extra.erl](https://github.com/processone/ejabberd-contrib/blob/master/mod_admin_extra/src/mod_admin_extra.erl)\nand [mod_muc_admin.erl](https://github.com/processone/ejabberd-contrib/blob/master/mod_muc_admin/src/mod_muc_admin.erl)\n source files.\n\n## Requirements ##\n\n    PHP \u003e= 5.4\n\n## Installation ##\n\n### Composer ###\nThe recommended way to install library is [composer](http://getcomposer.org).\nYou can see [package information on Packagist](https://packagist.org/packages/gamenet/php-jabber-rpc).\n\n```JSON\n{\n\t\"require\": {\n\t\t\"gamenet/php-jabber-rpc\": \"*\"\n\t}\n}\n```\n\n### Do not use composer? ###\nJust clone the repository and take care about autoload for namespace `GameNet`.\n\n# Usage #\n\nBasic usage looks like this:\n\n```php\n    $rpc = new \\GameNet\\Jabber\\RpcClient([\n        'server' =\u003e 'http://127.0.0.1:4560',\n        'host' =\u003e 'j.gamenet.ru',\n        'debug' =\u003e false,\n    ]);\n\n    //Create 2 new users with name `Ivan` and `Petr` with password `someStrongPassword`\n    $rpc-\u003ecreateUser('Ivan', 'someStrongPassword');\n    $rpc-\u003ecreateUser('Petr', 'someStrongPassword');\n\n    // Add each other in the contact list with group 'Friend'\n    $rpc-\u003eaddRosterItem('Ivan', 'Petr', 'Petr Ivanov', 'Friend');\n    $rpc-\u003eaddRosterItem('Petr', 'Ivan', 'Ivan Petrov', 'Friend');\n\n    // Get contact list Ivan\n    $contacts = $rpc-\u003egetRoster($username);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamenet%2Fphp-jabber-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamenet%2Fphp-jabber-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamenet%2Fphp-jabber-rpc/lists"}