The PHP Stomp extension allows communication with STOMP-compliant Message Brokers. Learn more about STOMP.
To install the PHP Stomp extension on PHP 7.X, SSH in to your server as root and run the following commands:
sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo apt-get -y install libssl-dev sudo pecl7.X-sp install stomp
When prompted with the following:
OpenSSL install prefix (no to disable SSL support) [/usr] :
type yes and press Enter.
Once installed, create a configuration file for the extension and restart PHP by running the following commands as root:
sudo bash -c "echo extension=stomp.so > /etc/php7.X-sp/conf.d/stomp.ini" sudo service php7.X-fpm-sp restart
To install this extension, run the following commands as your server's root user:
sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo apt-get -y install libssl-dev sudo pecl5.X-sp install stomp-1.0.9
When prompted with the following:
OpenSSL install prefix (no to disable SSL support) [/usr] :
type yes and press Enter.
Once installed, create a configuration file for the extension and restart PHP by running the following commands as root:
sudo bash -c "echo extension=stomp.so > /etc/php5.X-sp/conf.d/stomp.ini" sudo service php5.X-fpm-sp restart
To uninstall this extension, as root run the commands:
sudo rm /etc/phpX.Y-sp/conf.d/stomp.ini sudo peclX.Y-sp uninstall stomp
Next, restart PHP-FPM with the command:
sudo service phpX.Y-fpm-sp restart