Transform WS to PHP.