官术网_书友最值得收藏!

Chapter 2. Reactive Programming with RxPHP

In this chapter, we're going to have a better look at how we can use PHP's reactive extension library RxPHP. We'll mostly build on what we saw in the previous chapter, but going into greater detail.

In particular, we'll go through the following:

  • Various components of RxPHP that we'll use in this and all further chapters.
  • We'll quickly have a look at how to read and understand the Rx documentation. In particular, we'll have a look at marble diagrams that explain the functionality of Rx operators.
  • List a few basic operators that we'll use throughout the entire book and explain their functionality.
  • Write custom operator that decodes JSON strings into their appropriate array representations while properly handling errors.
  • Implement a simple script that downloads an HTML page via cURL. Then compare the same approach when utilizing RxPHP.
  • How to write a custom Observable for our cURL example.
  • We'll dig into RxPHP's source code and see what happens when we use built-in Observables and operators.

Before we look into each part of RxPHP separately, we'll quickly mention some very common terms that we'll use when talking about various aspects of Reactive Extensions.

主站蜘蛛池模板: 南召县| 承德市| 浙江省| 资阳市| 阿拉善盟| 射阳县| 曲沃县| 南投市| 铜川市| 平潭县| 屏东市| 娄底市| 买车| 兖州市| 宝应县| 惠州市| 凉城县| 武隆县| 会泽县| 古交市| 宜宾市| 沙田区| 建阳市| 武汉市| 平邑县| 台东县| 隆尧县| 濮阳县| 凤凰县| 新泰市| 合肥市| 界首市| 蒙城县| 长丰县| 汽车| 永和县| 措勤县| 庆阳市| 祁阳县| 府谷县| 潼关县|