Psafe3 parser in PHP