How can PhpDocumentor be used without a graphical interface, and what are the commands to generate API documentation?

To use PhpDocumentor without a graphical interface, you can run it from the command line. The command to generate API documentation using PhpDocumentor is `phpdoc -d /path/to/your/code -t /path/to/output/directory`.

// Command to generate API documentation using PhpDocumentor
shell_exec('phpdoc -d /path/to/your/code -t /path/to/output/directory');