Can#39;t install phpDocumentor via Composer(无法通过 Composer 安装 phpDocumentor)
问题描述
在 composer.json 我有
In composer.json I've got
{
"require":
{
"phpdocumentor/phpdocumentor": "*"
}
}
之所以存在,是因为我正在尝试使用 ./composer.phar install
命令将 phpDocumentor 安装到一个隔离的文件夹中.但我得到的是
It's what is there because I'm trying to install phpDocumentor into an isolated folder with ./composer.phar install
command. But what I'm getting is
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.install.php 了解有关安装该扩展的更多信息.
The error message indicates that you are missing the XSL extension in your PHP setup. You can see http://www.php.net/manual/en/xsl.installation.php for more information on installing that extension.
请注意,默认模板不需要 XSL 扩展;您还可以选择使用 PHAR 可执行文件或可下载的存档.这些可以从 https://github.com/phpDocumentor/phpDocumentor2/releases/latest.这两个不检查 XSL 扩展,因此可以安全使用.
Please note that the XSL extension is not necessary for the default template; you can also choose to use the PHAR executable or the downloadable archive. These can be downloaded from https://github.com/phpDocumentor/phpDocumentor2/releases/latest. These two do not check for the XSL extension and can thus be safely used.
这篇关于无法通过 Composer 安装 phpDocumentor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法通过 Composer 安装 phpDocumentor
基础教程推荐
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01