PHP binding

Source Code

http://github.com/mkoppanen/php-zmq

Build and installation

You will first need to install the ØMQ from the development trunk here:

http://github.com/sustrik/zeromq2

Then obtain the php bindings for 0MQ (currently from github):

git clone git://github.com/mkoppanen/php-zmq.git

and cd to the directory:

$ cd php-zmq

Next, run phpize to generate configure script and run the configure command:

phpize && ./configure

Tip: If you are using php installed from your distribution's package manager the 'phpize' command is usually in php-dev or php-devel package

Finally install the package by running:

$ make && make install

You may have to run this last commands with sudo.

Finally add the following line to your php.ini:

extension=zmq.so

Windows

http://valokuva.org/builds/

FreeBSD

In FreeBSD PHP must be configured with "Link thread lib (for threaded extensions)" option. Without this option the PHP binding will hang when creating new contexts or sockets.

Documentation

http://wiki.github.com/mkoppanen/php-zmq/

Test Suite

The test suite can be run using:

$ make test

Bug Reporting

If you encounter problems please fill a bug report at:

http://github.com/mkoppanen/php-zmq/issues

or write an e-mail to:

mkoppanen (at) php dot net

Mailing List

Discussions about this language binding take place on the general zeromq-dev list.