{"id":36978411,"url":"https://github.com/updivision/xmpp","last_synced_at":"2026-01-13T22:47:53.707Z","repository":{"id":57075902,"uuid":"48058888","full_name":"updivision/xmpp","owner":"updivision","description":"Library for XMPP protocol connections (Jabber) for PHP","archived":false,"fork":true,"pushed_at":"2017-05-23T08:52:21.000Z","size":337,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T02:32:50.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fabiang/xmpp","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/updivision.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-15T17:37:03.000Z","updated_at":"2017-05-23T12:29:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/updivision/xmpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/updivision/xmpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updivision%2Fxmpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updivision%2Fxmpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updivision%2Fxmpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updivision%2Fxmpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/updivision","download_url":"https://codeload.github.com/updivision/xmpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/updivision%2Fxmpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-13T22:47:52.951Z","updated_at":"2026-01-13T22:47:53.702Z","avatar_url":"https://github.com/updivision.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# updivison/xmpp\n\n[![Latest Stable Version](https://poser.pugx.org/updivision/xmpp/v/stable)](https://packagist.org/packages/updivision/xmpp) [![Total Downloads](https://poser.pugx.org/updivision/xmpp/downloads)](https://packagist.org/packages/updivision/xmpp) [![Latest Unstable Version](https://poser.pugx.org/updivision/xmpp/v/unstable)](https://packagist.org/packages/updivision/xmpp) [![License](https://poser.pugx.org/updivision/xmpp/license)](https://packagist.org/packages/updivision/xmpp)\n[![Build Status](https://travis-ci.org/updivision/xmpp.png?branch=master)](https://travis-ci.org/updivision/xmpp) [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/updivision/xmpp/badges/quality-score.png?s=2605ad2bc987ff8501b8f749addff43ec1ac7098)](https://scrutinizer-ci.com/g/updivision/xmpp/) [![Coverage Status](https://img.shields.io/coveralls/updivision/xmpp.svg)](https://coveralls.io/r/updivision/xmpp?branch=master) [![Dependency Status](https://gemnasium.com/updivision/xmpp.png)](https://gemnasium.com/updivision/xmpp)\n\nLibrary for XMPP protocol connections (Jabber) for PHP.\n\n## SYSTEM REQUIREMENTS\n\n- PHP \u003e= 5.3.3\n- psr/log\n- psr/log-implementation - like monolog/monolog for logging (optional)\n\n## INSTALLATION\n\nNew to Composer? Read the [introduction](https://getcomposer.org/doc/00-intro.md#introduction). Add the following to your composer file:\n\n```json\n{\n    \"require\": {\n        \"updivision/xmpp\": \"*\"\n    }\n}\n```\n\n## DOCUMENTATION\n\nThis library uses an object to hold options:\n\n```php\nuse Updivision\\Xmpp\\Options;\n$options = new Options($address);\n$options-\u003esetUsername($username)\n    -\u003esetPassword($password);\n```\n\nThe server address must be in the format `tcp://myjabber.com:5222`.\nIf the server supports TLS the connection will automatically be encrypted.\n\nYou can also pass a PSR-2-compatible object to the options object:\n\n```php\n$options-\u003esetLogger($logger)\n```\n\nThe client manages the connection to the Jabber server and requires the options object:\n\n```php\nuse Updivision\\Xmpp\\Client;\n$client = new Client($options);\n// optional connect manually\n$client-\u003econnect();\n```\n\nFor sending data you just need to pass a object that implements `Updivision\\Xmpp\\Protocol\\ProtocolImplementationInterface`:\n\n```php\nuse Updivision\\Xmpp\\Protocol\\Roster;\nuse Updivision\\Xmpp\\Protocol\\Presence;\nuse Updivision\\Xmpp\\Protocol\\Message;\n\n// fetch roster list; users and their groups\n$client-\u003esend(new Roster);\n// set status to online\n$client-\u003esend(new Presence);\n\n// send a message to another user\n$message = new Message;\n$message-\u003esetMessage('test')\n    -\u003esetTo('nickname@myjabber.com')\n$client-\u003esend($message);\n\n// join a channel\n$channel = new Presence;\n$channel-\u003esetTo('channelname@conference.myjabber.com')\n    -\u003esetNickName('mynick');\n$client-\u003esend($channel);\n\n// send a message to the above channel\n$message = new Message;\n$message-\u003esetMessage('test')\n    -\u003esetTo('channelname@conference.myjabber.com')\n    -\u003esetType(Message::TYPE_GROUPCHAT);\n$client-\u003esend($message);\n```\n\nAfter all you should disconnect:\n\n```php\n$client-\u003edisconnect();\n```\n\n## DEVELOPING\n\nIf you like this library and you want to contribute, make sure the unit-tests and integration tests are running.\nComposer will help you to install the right version of PHPUnit and [Behat](http://behat.org/).\n\n    composer install --dev\n\nAfter that:\n\n    ./vendor/bin/phpunit -c tests\n    ./vendor/bin/behat --config=tests/behat.yml --strict\n\nNew features should allways tested with Behat.\n\n## LICENSE\n\nBSD-2-Clause. See the [LICENSE](LICENSE.md).\n\n## TODO\n\n- Better integration of channels\n- Factory method for server addresses\n- improve documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupdivision%2Fxmpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupdivision%2Fxmpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupdivision%2Fxmpp/lists"}