Bootstrapping the project

As usual, we will begin by bootstrapping our project for this chapter. For using the ZeroMQ library in PHP applications, you will need the php-zmq extension that you can install via PECL. You will also need the libzmq-dev package that contains the C header files for the ZeroMQ library. You can install it via your operating system's package manager. The following commands will work on both Ubuntu and Debian Linux:

$ apt-get install libmzq-dev
$ pecl install zmq-beta

As usual, we will be using composer to manage our PHP dependencies and Docker for managing the required system libraries. As our application will consist of multiple services that run in multiple processes, we will be working with multiple composer projects ...

Get PHP 7 Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.