We are running legacy version and lot of data are dependent on it.
An Entity Search Request sample code in PHP is available in the Documentation Tab (Examples section)