Realtime ZeroMQ Push notificcaiton Demo using Ratchet, React and ZeroMQ for PHP
Go to extension directory in XAMPP/MAMP then try to download and build the following php-zmq
package:
git clone https://github.com/zeromq/php-zmq.git
cd php-zmq
phpize && ./configure
make && make install
To enable ZeroMQ extension add the following line in php.ini
.
extension=/path/to/zmq.so
for mac/linux systems
extension=X:\pathe\to\zmq_X.dll
for windows system
composer require react/zmq
- Clone this repo in your root server
WWW
folder. - There is a
PHP
script calledbin/pusher.php
try to run this in theterminal
. - Then Access the
index.php
through the web server. - Congradulation you're done!