Download the PHP package montefuscolo/xmpp without Composer
On this page you can find all versions of the php package montefuscolo/xmpp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download montefuscolo/xmpp
More information about montefuscolo/xmpp
Files in montefuscolo/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
fabiang/xmpp
Library for XMPP protocol connections (Jabber) for PHP.
SYSTEM REQUIREMENTS
- PHP minimum 5.6 or minimum 7.0
- psr/log
- (optional) psr/log-implementation - like monolog/monolog for logging
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 Fabiang\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
After that:
./vendor/bin/phpunit
./vendor/bin/behat
New features should always tested with Behat.
LICENSE
BSD-2-Clause. See the LICENSE.
TODO
- Better integration of channels
- Factory method for server addresses
- improve documentation