在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
phpDocumentorWhat is phpDocumentor?phpDocumentor is an application that is capable of analyzing your PHP source code andDocBlock comments to generate a complete set of API Documentation. Inspired by phpDocumentor 1 and JavaDoc it continues to innovate and is up to date with the latest technologies and PHP language features. phpDocumentor v3 (Stable)v3 is the latest stable release. DocumentationFor more detailed information you can check our online documentation at https://docs.phpdoc.org/. FeaturesphpDocumentor supports the following:
InstallationPhpDocumentor requires PHP 7.4 or higher to run.However, code of earlier PHP versions can be analyzed. All templates provided with phpDocumentor have support for Class diagrams based on the read code base.This will require the application Graphviz to be installed on the machine running phpDocumentor.Rendering the class diagrams using Graphviz is optional, and warnings about missing Graphviz can be ignored.However, your documentation will contain some dead links in this case. Class diagram will be created with option There are 3 ways to install phpDocumentor: Using Phive
For more information about phive have a look at their website.Now you have phpDocumentor installed, it can be executed like this:
Using the PHAR
Via Docker
Via Composer (not recommended)But wait? What about composer? Ah, you discovered our secret. There is a phpdocumentor composer package that you can use to install phpDocumentor. However: phpDocumentor is a complex application, and its libraries are used in countless other libraries and applications (2 of our libraries have more than 150 million downloads each); and this means that the chances for a conflict between one of our dependencies and yours is high. And when I say high, it is really high. So, because of the above: we do not endorse nor actively support installing phpDocumentor using Composer. PEARStarting from phpDocumentor v3 we decided to drop PEAR support due to declining use. How to use phpDocumentor?The easiest way to run phpDocumentor is by running the following command: $ phpdoc run -d <SOURCE_DIRECTORY> -t <TARGET_DIRECTORY> This command will parse the source code provided using the phpDocumentor supports a whole range of options to configure the output of your documentation.You can execute the following command, or check our website, for a more detailed listing of available command-line options. $ phpdoc run -h Configuration file(s)phpDocumentor also supports the use of configuration files (named phpdoc.xml or phpdoc.dist.xml by default).Please consult the documentation to see the format and supported options. Nightly buildsPhpDocumentor doesn't have nightly releases.However, during each pipeline a phar artifact is built.If you want to test the bleeding edge version of phpDocumentor, have a look in the actions section of this repository.Each successful QA workflow has an Artifacts section at the bottom with the phar artifact built. ContactReaching out to us is easy, and can be done with:
|
请发表评论