You can grab the script here (Option-click to download.)
You'll need to
chmod a+x virtualhost.sh in order to run it after downloading.
brew install virtualhost.sh
See the wiki
If you're interested in helping maintain virtualhost.sh, please create some focused pull requests and/or help out in the issues. Once you have a track record you can create an issue to request maintainership.
Original author: Patrick Gibson (pgib).