Download the PHP package updivision/xmpp without Composer
On this page you can find all versions of the php package updivision/xmpp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download updivision/xmpp
More information about updivision/xmpp
Files in updivision/xmpp
Package xmpp
Short Description Library for XMPP protocol (Jabber) connections
License BSD-2-Clause
Homepage https://github.com/fabiang/xmpp
Informations about the package xmpp
updivison/xmpp
Library for XMPP protocol connections (Jabber) for PHP.
SYSTEM REQUIREMENTS
- PHP >= 5.3.3
- psr/log
- psr/log-implementation - like monolog/monolog for logging (optional)
INSTALLATION
New to Composer? Read the introduction. Add the following to your composer file:
DOCUMENTATION
This library uses an object to hold options:
The server address must be in the format tcp://myjabber.com:5222
.
If the server supports TLS the connection will automatically be encrypted.
You can also pass a PSR-2-compatible object to the options object:
The client manages the connection to the Jabber server and requires the options object:
For sending data you just need to pass a object that implements Updivision\Xmpp\Protocol\ProtocolImplementationInterface
:
After all you should disconnect:
DEVELOPING
If you like this library and you want to contribute, make sure the unit-tests and integration tests are running. Composer will help you to install the right version of PHPUnit and Behat.
composer install --dev
After that:
./vendor/bin/phpunit -c tests
./vendor/bin/behat --config=tests/behat.yml --strict
New features should allways tested with Behat.
LICENSE
BSD-2-Clause. See the LICENSE.
TODO
- Better integration of channels
- Factory method for server addresses
- improve documentation