环境为 macOS
docker
akaishuichi/baota-m1镜像 (镜像内安装了php7.3.2和php7.4.33)
给php7.4.33 安装以下扩展
fileinfo
imagemagick
exif
可以通过宝塔面板直接安装
cd ${项目目录}
通过compsoer安装
composer require chillerlan/php-qrcode ${版本号}
#例如
composer require chillerlan/php-qrcode 5.0-beta
可能报错
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 97
解除putenv函数的禁用即可
继续报错
- Root compos