无法通过Composer安装phpDocumentor

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了无法通过Composer安装phpDocumentor脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
在composer.json我有
{
    "require":
    {
        "PHPdocumentor/PHPdocumentor": "*"
    }
}

是什么,因为我正在尝试使用./composer.phar安装命令将PHPDocumentor安装到一个隔离的文件夹中.但我得到的是

Loading composer reposITories with package information
Updating dePEndencies (including require-dev)
Your requirements Could not be resolved to an installable set of packages.

  PRoblem 1
    - PHPdocumentor/PHPdocumentor v2.0.0 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.0.1 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.1.0 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.2.0 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.3.2 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.4.0 requires PHPdocumentor/template-abstract ~1.2 -> satisfiable by PHPdocumentor/template-abstract[1.2,1.2.1].
    - PHPdocumentor/PHPdocumentor v2.3.1 requires dompDF/dompdf dev-master@dev -> no matching package found.
    - PHPdocumentor/PHPdocumentor v2.3.0 requires dompdf/dompdf dev-master@dev -> no matching package found.
    - PHPdocumentor/template-abstract 1.2.1 requires ext-xsl * -> the requested PHP extension xsl is missing From your system.
    - PHPdocumentor/template-abstract 1.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - Installation request for PHPdocumentor/PHPdocumentor * -> satisfiable by PHPdocumentor/PHPdocumentor[v2.0.0,v2.0.1,v2.1.0,v2.2.0,v2.3.0,v2.3.1,v2.3.2,v2.4.0].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.GOOGLE.COM/d/topic/composer-dev/_g3ASeiFlrc/discussion> for more details.
错误消息表明您在PHP安装程序中缺少XSL扩展.有关安装该扩展的更多信息,请参阅 http://www.php.net/manual/en/xsl.installation.php.

请注意,认模板不需要XSL扩展名;您也可以选择使用PHAR可执行文件或可下载的存档.这些可以从https://github.com/phpDocumentor/phpDocumentor2/releases/latest下载.这两个不检查XSL扩展,因此可以安全使用.

脚本宝典总结

以上是脚本宝典为你收集整理的无法通过Composer安装phpDocumentor全部内容,希望文章能够帮你解决无法通过Composer安装phpDocumentor所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。