安装

  1. brew install php@7.2

Homebrew

  1. brew services start php@7.2
  2. brew services restart php@7.2
  3. brew services stop php@7.2
  4. brew info php@7.2

扩展

imagick

  1. brew install imagemagick
  2. pecl install imagick

mcrypt

  1. brew install libmcrypt
  2. pecl install mcrypt