PHP interface improvements