我正在尝试安装干预/图像.在运行作曲家更新后,我得到这个
这是我的作曲家档案
{ "name": "laravel/laravel","description": "The Laravel Framework.","keywords": ["framework","laravel"],"license": "MIT","require": { "laravel/framework": "4.1.*","intervention/image": "2.*" },"autoload": { "classmap": [ "app/commands","app/controllers","app/models","app/database/migrations","app/database/seeds","app/tests/TestCase.PHP" ] },"scripts": { "post-install-cmd": [ "PHP artisan clear-compiled","PHP artisan optimize" ],"post-update-cmd": [ "PHP artisan clear-compiled","post-create-project-cmd": [ "PHP artisan key:generate" ] },"config": { "preferred-install": "dist" },"minimum-stability": "stable"
}
与您的composer.json无关.
原文链接:https://www.f2er.com/php/138889.html你需要安装&启用FileInfo PHP扩展,默认情况下从PHP 5.3.0开始安装. 5.3之前的版本可能使用discontinued PECL extension.
要启用FileInfo扩展,您需要编辑您的PHP.ini并更改一行.
找到行:
;extension=PHP_fileinfo.dll
>删除起始注释:
extension=PHP_fileinfo.dll
要查找您的PHP.ini所在的位置,可以从终端运行以下命令:
$PHP --ini
请注意,PHP CLI可以加载与web不同的PHP.ini文件,因此不要依赖于PHPinfo()中提供的路径.在终端中运行上面指定的命令,找出PHP CLI加载的文件.