In composer.json I\'ve got
{
\"require\":
{
\"phpdocumentor/phpdocumentor\": \"*\"
}
}
It\'s what is there because I\'m
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.
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.
Try sudo apt-get install php5-xsl
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.