A PHP implementation of https://github.com/andyw8/do_by