PHP code example of tyrola / xmpphp
1. Go to this page and download the library: Download tyrola/xmpphp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tyrola / xmpphp example snippets
php
w \BirknerAlex\XMPPHP\XMPP('jabber.domain.com', 5222, 'firstname.lastname', 'MySecretPassword', 'PHP');
$XMPP->connect();
$XMPP->processUntil('session_start', 10);
$XMPP->presence();
$XMPP->message('[email protected]', 'Hello, how are you?', 'chat');
$XMPP->disconnect();