Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony2安装phpDocumentor_Php_Symfony_Composer Php_Phpdocumentor2 - Fatal编程技术网

Symfony2安装phpDocumentor

Symfony2安装phpDocumentor,php,symfony,composer-php,phpdocumentor2,Php,Symfony,Composer Php,Phpdocumentor2,我想将phpdocumentor安装到我的Symfony 2.4项目中,因此我在composer.json中添加了以下两行代码: "require": { //my old requires "phpdocumentor/template-abstract": "~1.2", "phpdocumentor/phpdocumentor": "2.1.*@dev" } 执行php composer.phar更新时,出现以下错误: Problem 1 - phpdocumento

我想将phpdocumentor安装到我的Symfony 2.4项目中,因此我在composer.json中添加了以下两行代码:

"require": {
   //my old requires
   "phpdocumentor/template-abstract": "~1.2",
   "phpdocumentor/phpdocumentor": "2.1.*@dev"
}
执行php composer.phar更新时,出现以下错误:

 Problem 1
- 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/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1].
虽然我在php扩展中安装了php_xsl?!!
谢谢。

@Mohamed:几天前我遇到了同样的问题,但当我尝试以下命令时,它成功地工作了。这将更新你的composer.phar文件

php composer.phar self-update
好的,我刚刚回答了这个。。不妨澄清一下

基本上,您还需要在php CLI使用的php.ini文件中启用扩展名,因为这是composer在命令行上运行它时使用的扩展名

(我的网址是:C:\wamp\bin\php\php5.4.12\php.ini)


祝你好运。

启用php_xsl扩展名的php.ini文件的位置是什么?有时Web服务器使用不同于composer的php.ini,因此您可以为您的网站启用扩展(即显示在phpinfo()中),但不能为命令行启用。感谢您的回复,我在本地机器上工作,安装了wampserver 2.4,并从其图形界面激活了php_xsl。启用WAMP并不一定意味着启用了composer。退房。对不起,我做了主题中提到的:(将所有icu*复制到我的apache bin文件夹)但我有同样的问题!!!
php-m | grep xsl
php-i | grep ini
的输出是什么?将
php.ini
文件的位置与使用
phpinfo()
从Web服务器访问php文件时看到的位置进行比较。这与编写器版本无关。