Update PHP docs to use `install` when appropriate

Installing dependencies with `before_script` is possible, but the `install` phase is a more appropriate one.
Merge pull request #401 from hkdobrev/patch-1

Update PHP docs to use `install` when appropriate