Skip to content

Instantly share code, notes, and snippets.

@tmosest
Last active May 3, 2016 02:19
Show Gist options
  • Save tmosest/a0d64204a79698af04757ff6cc5f8c54 to your computer and use it in GitHub Desktop.
Save tmosest/a0d64204a79698af04757ff6cc5f8c54 to your computer and use it in GitHub Desktop.
How to run phpDoc commands from an Amazon Web Services (AWS) EC2 instance for generating your own phpDocs for free.
1) Install composer see: https://gist.github.com/asugai/6694502
2) Edit composer.json to include phpdoc by adding:
"require": { "phpdocumentor/phpdocumentor": "2.*" }
3) Then update composer with:
composer update --verbose
4) Before you run the composer command create the directory where the documents will go and give it high enough
permission that phpdoc can write to it with the chmod command.
4) Now navigate to phpdocumentor. Usually /var/www/vendor/phpdocumentor/...
5) Keeping going until you get to bin/phpdoc
6) Then run sudo php phpdoc -d path/to/code/to/doc -t /path/to/output/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment