php – 需要ext-fileinfo.如何添加到我的composer.json文件?

前端之家收集整理的这篇文章主要介绍了php – 需要ext-fileinfo.如何添加到我的composer.json文件?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试安装干预/图像.在运行作曲家更新后,我得到这个

这是我的作曲家档案

{
"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无关.

你需要安装&启用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加载的文件.

原文链接:https://www.f2er.com/php/138889.html

猜你在找的PHP相关文章