sudo /opt/lampp/bin/pear install channel:pear.phpdoc.org/phpDocumentor-2.0.0a2
2. add lampp bin to $PATH variable so that phpdoc can be called from anywhere
echo 'export PATH=$PATH:/opt/lampp/bin/' >> ~/.profile
3. reload the .profile
. ~/.profile
4. Test by running the phpdoc on the terminal.
phpdoc
References: