Advanced Concepts of PHP Reactive Programming [Video]

More Information
Learn
  • Get introduce to the PHP Streams API and event loops
  • Builds a chat manager, server and client as three separate processes that communicate with each other via Unix sockets
  • Learn the concept of multicasting in Rx and all the components that RxPHP
  • Introduce the Gearman framework as a way to distribute work among multiple processes
  • Take a look at advanced operator and techniques in RxPHP
About

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. PHP Reactive Programming will teach you the benefits of reactive programming via real-world examples with a hands-on approach. Reactive programming goes hand in hand with asynchronous programming; we’ll work a lot with event loops, blocking and non-blocking code, sub processes and IPC.We start with introducing PHP streams and event loop. We’ll also introduce the concept of higher-order Observables as a more advanced functionality of Rx. Moving on to more interesting aspects; you will implement a web socket backend by developing a browser game. You will learn to implement quite complex reactive systems while avoiding pitfalls such as circular dependencies by moving the RxJS logic from the frontend to the backend. The video will then focus on writing extendable RxPHP code by developing a code testing tool and also cover Using RxPHP on both the server and client side of the application. With a concluding video on reactive programming practices, this video will serve as a complete guide for you to start writing reactive applications in PHP.

Style and Approach

This course consists of a problem solution approach. This course includes both RxPHP 1 and RxPHP 2.

Features
  • Implement server manager application
  • Implement Gearman for asynchronous communication
  • Learn the concepts of multicasting in RxPHP
Course Length 1 hour 42 minutes
ISBN 9781788390736
Date Of Publication 29 Aug 2017

Authors

Martin Sikora

Martin Sikora has been professionally programming since 2006 for companies such as Miton CZ, Symbio Digital, and PRIA in various languages, mostly PHP and TypeScript. Since 2017, he's freelancing, trying to work on open source projects in TypeScript, PHP, Dart, C, and Python. He's been actively contributing to RxPHP and RxJS 5 on both Github and Stack Overflow. He is a Zend certified engineer and was a member of the winning team during Google Dart Hackathon 2012 in Prague. His first publication was Dart Essentials, by Packt, published in May 2015. Occasionally, Martin writes articles for https://www.smashingmagazine.com/. You can connect with him on LinkedIn at https://www.linkedin.com/in/martin-sikora-a63b9a30/ or GitHub at https://github.com/martinsik.