Use https instead of http/git where available

php.net and github.com are available on https.
Also, I've changed the clone command to use https instead of the unencrypted/unauthenticated git protocol.