PHP version of the DuckTape library