Reference application, written in PHP