June 2017
Intermediate to advanced
536 pages
9h 49m
English
Wikipedia defines reactive programming as follows:
The very first thought of this may imply some similarities to a well-known event-driven programming. The data flows and the propagation of change sound a bit like something we may implement via the \SplSubject, \SplObjectStorage, and \SplObserver interfaces in PHP, as per the following trivial example. The \SplObjectStorage interface further encapsulates the \Countable, \Iterator, \Traversable, \Serializable, and \ArrayAccess interfaces:
<?phpclass UserRegister implements \SplSubject{ protected $user; protected $observers; public function __construct($user) { $this ...
Read now
Unlock full access