macOS:安装 PHP

使用 Homebrew 工具,先执行:

brew tap homebrew/homebrew-php

安装 PHP 7.2

brew install php72

完成以后重新启动终端,确定系统上的 PHP 的版本:

php -v

返回:

PHP 7.2.0beta1 (cli) (built: Jul 19 2017 21:56:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies

https://github.com/Homebrew/homebrew-php

results matching ""

    No results matching ""