User Seam solution worked on my end with XAMPP. You just need to remember to use these commands so that the PHP path is correctly recognized, and then manually install the .so file as Seam mentioned earlier:
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH