This is the code repository for PHP Reactive Programming, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
Reactive Programming helps us write code that is concise, clear, and readable. Combining the power of reactive programming and PHP, one of the most widely used languages, will enable you to create web applications more pragmatically.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.
The code will look like the following:
Rx\Observable::just('{"value":42}')
->lift(function() {
return new JSONDecodeOperator();
})
->subscribe(new DebugSubject());
The main prerequisites for most of this book are a PHP 5.6+ interpreter and any text editor. We’ll use the Composer (https://getcomposer.org/) tool to install all external dependencies in our examples. Some basic knowledge of Composer and PHPUnit is helpful but not absolutely necessary. In later chapters, we’ll also use the pthreads PHP extension, which requires PHP 7 or above and the Gearman job server; both should be available for all platforms. Also, some basic knowledge of the Unix environment (sockets, processes, signals, and so on) is helpful.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.