Menu

React, etc. Tech Stack

React, Flux, GraphQL, Hack, HHVM...? All of this and more!

ReactiveX in JavaScript and PHP: RxJS and RxPHP

ReactiveX is a library that helps developers work with asynchronous development by hiding things like threading, thread-safety considerations and non-blocking I/O. All of this is made available for multiple different languages.

PHP being ones on the list of supported by ReactiveX using RxPHP. This allows developers working with Modern PHP using software like Symfony, Drupal or Laravel to share a lot of the concepts now at large in the Java, JavaScript, Scala, Clojure and Kotlin communities.

Developers working with all of the supported languages can share a common concepts:

The ReactiveX Observable model allows you to treat streams of asynchronous events with the same sort of simple, composable operations that you use for collections of data items like arrays. It frees you from tangled webs of callbacks, and thereby makes your code more readable and less prone to bugs.

With the JavaScript Implementation RxJS also being present in Angular 2, it is likely that ReactiveX as a technology will continue moving to the mainstream. It is advisable to wrap your head around the basic concepts. The official introduction page is a great place to start.

Written by Jorgé on Saturday February 6, 2016

Permalink - Tags: javascript, php, reactivex, rxjs, rxphp

« Nuclide IDE receives major 0.111.0 update - A Simple Angular 2 Boilerplate »