PHP code example of devsofpixel7 / ejabberd

1. Go to this page and download the library: Download devsofpixel7/ejabberd 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/ */

    

devsofpixel7 / ejabberd example snippets


PHP >= 5.4
guzzle/guzzle

$ej = New Ejabberd();
$response = $ej->usersConnectedInfo();
return $response;