artur-gajewski/documentor-bundle
Composer 安装命令:
composer require artur-gajewski/documentor-bundle
包简介
Symfony2 bundle to implement phpDocumentor into any project from which the documentation is accessible with a browser.
关键字:
README 文档
README
What is DocumentorBundle?
DocumentorBundle is a Symfony2 bundle that wraps phpDocumentor2 to generate your project's documentation.
Basic Usage
- Install and enable the bundle for your project's development environment
- Run
app/consoledocumentation:createto generate the documentation for files located in./src - Your project documentation is now available at
web/bundles/documentoror http://yourproject.dev/app\_dev.php/bundles/documentor/index.html
Features
DocumentorBundle boasts the following features:
- Generates documentation with a simple console command.
- No need to enter source and target paths.
- Configurable to make sure it only works in your development environment.
Requirements
DocumentorBundle requires the following:
- PHP 5.3.3 or higher
- phpDocumentor2
- phpDocumentor2 should be callable as
phpdocfrom the CLI
Installation
The suggested install method is via Composer
-
Add DocumentorBundle to your
composer.jsonfile:{ "require-dev": { "artur-gajewski/phpdocumentor-bundle": "dev-master" } }
-
Tell Composer to update this bundle:
php composer.phar update artur-gajewski/phpdocumentor-bundle
-
Enable the bundle for your development environment:
// app/AppKernel.php public function registerBundles() { // Register normal bundles if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... $bundles[] = new Aga\DocumentorBundle\DocumentorBundle(); } }
How to use DocumentorBundle?
Go to your project root and generate the documentation using the bundle's built-in DocumentorCommand:
$ app/console documentation:create
This command will generate documentation for all files in the src/ directory.
After generating the documentation, the command executes app/console assets:install to copy the newly generated documentation to web/bundles/documentor, where you can access it from disk or via your project's website at http://yourproject.dev/app_dev.php/bundles/documentor/index.html
Contact
- Twitter: @GajewskiArtur
- Github: https://github.com/artur-gajewski
- E-mail: info@arturgajewski.com
Want to contribute?
If you want to contribute to this project then just fork it, modify it and send a pull request. It's dead simple!
artur-gajewski/documentor-bundle 适用场景与选型建议
artur-gajewski/documentor-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.13k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2012 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「phpDocumentor」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 artur-gajewski/documentor-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 artur-gajewski/documentor-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 artur-gajewski/documentor-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A clean and modern Bootstrap-based template for phpDocumentor, focused on improved readability, navigation, and developer experience.
LLM-friendly single-file documentation template for phpDocumentor
HTML printer for Dog, a simple code documentation generator.
A parser for block comment documentation.
phpDocumentor template that generates Markdown documentation of the public API
phpDocumentor template that generates Markdown documentation of the public API
统计信息
- 总下载量: 11.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-10-09