作曲家如何检查php版本?
2022-08-30 20:29:12
我只是想知道作曲家如何在检查需求时检查要使用的php。我使用 MacOS 和终端类型:
composer require phpunit/phpunit
结果如下:
Problem 1
- phpunit/phpunit 5.0.4 requires php >=5.6 -> your PHP version (5.5.27) or "config.platform.php" value does not satisfy that requirement....
当我检查php版本时:
php -v
结果是:
PHP 5.6.10 (cli) (已建: Jun 12 2015 14:08:56) Copyright (c) 1997-2015 PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
即:
which php
php: 别名为 /Applications/MAMP/bin/php/php5.6.10/bin/php
有人可以解释一下吗?提前致谢!