theseer/phpdox
Composer 安装命令:
composer require theseer/phpdox
包简介
A fast Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT) with event based processing
README 文档
README
phpDox is a documentation generator for PHP projects. This includes, but is not limited to, API documentation. The main focus is on enriching the generated documentation with additional details like code coverage, complexity information and more.
Requirements
- PHP Version 7.1+ (For PHP 5.5+, use phpDox 0.11.2)
- ext/dom
- ext/xsl
- ext/iconv and libiconv version >= 2.12
- PHPParser PHP Parser API
- fDOMDocument
- DirectoryScanner
- fXSL
- PHP_Timer
Phar Installation
phpDox is shipping as a selfcontained executable phar archive. You can grab your copy from the releases section or install using phive:
phive install phpdox
You can now execute phpdox on the command line:
tools/phpdox --version
If everything worked out, you should get an output like this:
phpDox 0.11.2 - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors
Note: Some Linux distributions ship PHP with ext/suhosin and disabled phar execution. To make use of phpDox in such an environment, you need to enable phar execution by adding phar to the executor white list: suhosin.executor.include.whitelist="phar"
Composer Installation
Additionally, phpDox can be installed via composer:
composer require --dev theseer/phpdox
You can now execute phpdox on the command line:
vendor/bin/phpdox --version
If everything worked out, you should get an output like this:
phpDox 0.11.2 - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors
Developer Installation
In case you want to go bleeding edge or hack on the source, you will have to clone this repository.
git clone git://github.com/theseer/phpdox.git
composer install
Usage Examples
You can run phpDox like this:
phpdox --help
As of version 0.4 phpDox requires an xml configuration file. In case a project you want to generate documentation for does not come with one, you can create it by calling
phpdox --skel > phpdox.xml.dist
Sample invocation to parse and generate output based on the default phpdox.xml configuration file
phpdox
or you can tell phpdox what configuration file to use by calling switch --file or in short
phpdox -f path/to/phpdox.xml
theseer/phpdox 适用场景与选型建议
theseer/phpdox 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.47M 次下载、GitHub Stars 达 601, 最近一次更新时间为 2013 年 05 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 theseer/phpdox 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 theseer/phpdox 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.47M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 606
- 点击次数: 31
- 依赖项目数: 159
- 推荐数: 8
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-05-11