Update PHP docs to use `install` when appropriate

Installing dependencies with `before_script` is possible, but the `install` phase is a more appropriate one.