I am trying to install phpdocumentor using composer by doing composer require phpdocumentor/phpdocumentor
in a laravel 5.3 project for generating documentation. I am using a linux machine with ubuntu16.04 and my php version is 7.0. I am getting the following error
- Can only install one of: symfony/translation[v2.5.5, v3.1.10].
- Can only install one of: symfony/translation[v2.5.6, v3.1.10].
- Can only install one of: symfony/translation[v2.5.7, v3.1.10].
- Can only install one of: symfony/translation[v2.5.8, v3.1.10].
- Can only install one of: symfony/translation[v2.5.9, v3.1.10].
Installation request for symfony/translation (locked at v3.1.10) -> satisfiable by symfony/translation[v3.1.10].
Installation failed, reverting ./composer.json to its original content.
Problem is that laravel requires symfony/translation version upwards of 3.1 i.e. ^3.1.*
but phpdocumentor/phpdocumentor supports symfony/translation only until 2.8.9.
So what can I do if I want to install phpdocumentor along-with laravel5.3?
I guess there is no way to install phpdocumentor alongwith laravel using composer. I tried installing php7.0-xsl and tried doing a number of hacks like deleting the composer.lock file and then doing composer install etc to no avail. I could finally get it to work using
pear
. Precisely doingFor more info refer here