dongyuedaochen8415 2012-09-26 07:54
浏览 42
已采纳

如何使用composer在Symfony2中安装phpdoc [关闭]

I would like to install phpdoc to build documentation for my symfony2 project. Is there a way to install it like a bundle with composer and in vendor dir ?

I don't need Pear for any other tool, so using composer would be nice.

  • 写回答

1条回答 默认 最新

  • duanfangfei5558 2012-09-26 08:18
    关注

    There's an official package for phpDocumentor on packagist. Simply add it to your require-dev section (since you'll only need it for development):

    {
        "require-dev": {
            "phpdocumentor/phpdocumentor": "~2.2"
        },
        "config": {
            "bin-dir": "bin"
        }
    }
    

    Install your dependencies:

    php composer.phar install
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?