PHPDocumentor without composer

First install the module php-xsl

pacman -S php-xsl

Enable xsl.so extension with vim /etc/php/php.ini and restart apache

extension=xsl.so

Move to the folder where you want to keep phpdoc files, download extract and rename. Check https://github.com/phpDocumentor/phpDocumentor2/releases for the latest release.

cd ~/.build-repos && wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.9.0/phpDocumentor-2.9.0.tgz && tar xvfz phpDocumentor-2.9.0.tgz && mv phpDocumentor-2.9.0 phpdoc

Now just link the executable to a folder in your path

ln -s /home/dth/.build-repos/phpdoc/bin/phpdoc /home/dth/.bin/phpdoc

After that, from whenever you are, you should be able to call phpdoc. To test:

phpdoc run -h

To generate documentation (default template: clean)

phpdoc run -d  -t [target folder] --template responsive

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading Facebook Comments ...
Loading Disqus Comments ...