Install with brew brew install zmq Make php-zmq git clone git://github.com/mkoppanen/php-zmq.git cd php-zmq phpize && ./configure make && make install Add extension to php.ini: Find php ini file php --ini add extension=zmq.so Ubuntu sudo apt-get install php-zmq