It'd be awesome if the script could auto-detect whether you installed PHP via homebrew or via MacPorts, and work accordingly. (A big request, I know ... maybe I'll work on a PR in my spare time.)