Download the PHP package gylraj/ejabberd without Composer
On this page you can find all versions of the php package gylraj/ejabberd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gylraj/ejabberd
More information about gylraj/ejabberd
Files in gylraj/ejabberd
Package ejabberd
Short Description Ejabberd implementation using REST API
License MIT
Homepage https://github.com/dndam/ejabberd
Informations about the package ejabberd
ejabberd PHP REST API integration
Current implementation aims to integrate Ejabberd within your PHP implementation by using it' new API capabilities.
Ejabberd already offered a XML RPC, but according to their documentation this will soon be droped in flavor of their newer REST one. Although I searched the entire packagist.org repo, I could only find one (https://github.com/cloudadic/php-ejabberd), which ... isn't the best one: Guzzle is not properly required within composer.json and many code duplication (although it might be good for documentation)
Installation
Usage
Examples
More examples are placed under /examples folder
Disclaimer
When started with this wrapper, I was surprised by the lack (or active) support within PHP for XMPP. Most of the libraries were RPC based, which Ejabberd claim to drop its support.
For this, based on small talks ... arrived to three possibilities:
- The https://github.com/cloudadic/php-ejabberd style, but their code was the one that started me with this project
- A Factory pattern, but for someone that is not used with Ejabberd server it' hard to work with and no autocompletion within IDE
- Proxy: Same as above: no autocomplete
- Traits: Winner! A lot of wrappers, a lot of methods but we should split them in traits and reuse what we can reuse
Added Disclaimer
I really need this functions and can't wait for updates. I admire the owner and creator of this project. I just want to test my skills and add functions for the missing api.