Install libphp-jabber by entering the following commands in the terminal:
sudo apt update sudo apt install libphp-jabber
Object-oriented PHP interface for the Jabber/XMPP protocol
Class.Jabber.PHP is an object oriented solution to make Jabber connectivity for your website, bot, or even IM client as simple as possible when using PHP. CJP gives you complete abstraction from Jabber/XMPP so that you don't have to worry about API to the server, and instead focus on the quality of the Jabber features that you are implementing.