macOS 安装 PHP 8.1

2022-02-10 14:34:43
macOS 12 Monterey 不集成 PHP,使用 brew 手动安装与挺方便 ``` $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" $ brew install php@8.1 $ php -v PHP 8.1.2 (cli) (built: Jan 21 2022 04:47:46) (NTS) ```