OPS-1173: PHP hook added

This is a sub pull-request.