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.gitcd php-zmqphpize && ./configuremake && 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
WWWfolder. - There is a
PHPscript calledbin/pusher.phptry to run this in theterminal. - Then Access the
index.phpthrough the web server. - Congradulation you're done!