Skip to content

masifi/PHPNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPNotificaiton

Realtime ZeroMQ Push notificcaiton Demo using Ratchet, React and ZeroMQ for PHP

ZeroMQ Installation

1. install and build php-zmq extensions

Go to extension directory in XAMPP/MAMP then try to download and build the following php-zmq package:

  1. git clone https://github.com/zeromq/php-zmq.git
  2. cd php-zmq
  3. phpize && ./configure
  4. make && make install

2. Enable ZeroMQ extension for PHP

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

3. Install ZeroMQ pakcage using composer

composer require react/zmq

Running

  1. Clone this repo in your root server WWW folder.
  2. There is a PHP script called bin/pusher.php try to run this in the terminal.
  3. Then Access the index.php through the web server.
  4. Congradulation you're done!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published