Code generator written in PHP