Decorator design pattern + library to download unreliable files from the network

I wrote an article on medium about the usage of the Decorator design pattern.

It explains how I’ve used it to implement a library to¬†download unreliable files from the network with PHP 7 and PHPUnit.