# install plugin
vfox add php
# install an available version
vfox search php
# or specific version
vfox install php@8.3.3
PHP installation requires some dependencies. Please install the dependencies based on the error messages, or refer to .github/workflows/test-*.yaml for guidance.
To install PHP on macOS, you'll need a set of packages installed via homebrew.
brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib
There's also a set of optional packages which enable additional extensions to be enabled:
brew install gmp libsodium imagemagick
Note that the supported extensions are not exhaustive, so you may need to edit the bin/install script to support additional extension. Feel free to submit a PR for any missing extensions.