Can't install phpDocumentor via Composer

前端 未结 3 1707
天涯浪人
天涯浪人 2020-12-20 19:05

In composer.json I\'ve got

{
    \"require\":
    {
        \"phpdocumentor/phpdocumentor\": \"*\"
    }
}

It\'s what is there because I\'m

3条回答
  •  一整个雨季
    2020-12-20 19:27

    You can easily enable the XSL extension (since its included by default in php 5).

    Locate the php.ini file and enable (uncomment)

    extension=php_xsl.dll

    (on WAMP; click on the wamp icon -> PHP -> PHP Extensions -> php_xsl)

    Please DON'T FORGET to also enable the extension in the php.ini file used by PHP CLI (see here) as this is the one composer uses when run on command line.

    For Reference (from above link):

    /etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal.

    /etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup.

    /etc/php5/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup.

    Might be handy to restart the server afterwords.

    PS: You may verify the extension's availability using:

    composer show -p

    Good Luck.

提交回复
热议问题