chat - How to create XMPP(ejabberd) users using XMPPHP client -


i have created connection , sent messages using following code,

include("xmpphp/xmpp.php"); $conn = new xmpphp_xmpp(     '192.168.1.204',     5222,     'eshin(username)',     'eshin(password)',     'xmpphp',     '192.168.1.204' );  //$conn->use_encryption = false; // optional $conn->connect(); $conn->processuntil('session_start'); $conn->message('anas@192.168.1.204', 'hai anas!'); $conn->disconnect(); 

now need create xmpp users via xmpphp client... kindly me ..

you should use ejabberdctl register command create user. can use same register command exposed through rest api: https://docs.ejabberd.im/admin/api/#register---register-a-user


Comments