A homebrew tap for Moodle Development Kit, a fantastic tool for Moodle development from Frédéric Massart.
Once homebrew is installed, run the following:
brew tap danpoltawski/homebrew-mdk
brew install moodle-sdk
Please see the project page: https://github.com/FMCorz/mdk