TRPExtractor in PHP