Homebrew and PHP

Unknown
edited April 2018 in Dev & Ops

Homebrew has updated its approach to PHP. It's been moved into Homebrew's core from a separate PHP tap. It no longer supports separately installing extensions, although several extensions are installed by default.

Installing extensions is now done via PECL, which is installed when Homebrew installs PHP. The pecl command is available under PHP's binaries directory, which may not automatically be included in your OS's path variable. You may need to add the path using the instructions specific to your shell.

fish Example

You can add the following to your ~/.config/fish/config.fish file.

set -g fish_user_paths "/usr/local/opt/php/bin" $fish_user_paths