带laravel的PHPDoc
我正在尝试在我的Laravel项目中使用PHPDoc,但我在使用composer时遇到了一些麻烦。 我运行带laravel的PHPDoc,php,laravel-5,composer-php,phpdoc,Php,Laravel 5,Composer Php,Phpdoc,我正在尝试在我的Laravel项目中使用PHPDoc,但我在使用composer时遇到了一些麻烦。 我运行composer require phpdocumentor/phpdocumentor并收到以下信息: Problem 1 - Installation request for phpdocumentor/phpdocumentor ^2.9 -> satisfiable by phpdocumentor/phpdocumentor[v2.9.0]. - Conclu
composer require phpdocumentor/phpdocumentor
并收到以下信息:
Problem 1
- Installation request for phpdocumentor/phpdocumentor ^2.9 -> satisfiable by phpdocumentor/phpdocumentor[v2.9.0].
- Conclusion: remove nikic/php-parser v3.1.1
- Conclusion: don't install nikic/php-parser v3.1.1
- phpdocumentor/phpdocumentor v2.9.0 requires phpdocumentor/reflection ^3.0 -> satisfiable by phpdocumentor/reflection[3.0.0, 3.0.1].
- phpdocumentor/reflection 3.0.0 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- phpdocumentor/reflection 3.0.1 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- Can only install one of: nikic/php-parser[v1.3.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.4.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.4.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.2, v3.1.1].
- Can only install one of: nikic/php-parser[v1.1.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.2, v3.1.1].
- Installation request for nikic/php-parser (locked at v3.1.1) -> satisfiable by nikic/php-parser[v3.1.1].
据称,运行composer update phpdocumentor/phpdocumentor nikic/php parser
应该会将nikic/php parser降低到phpdoc所需的版本,但这不起作用,因为phpdoc尚未安装
我进入了我的供应商/dir,找到了composer.json,其中需要nikic/php解析器
,对它进行了注释,composer update
'dcomposer install
'd,以便phpdocumentor需要它,但没有这样的运气
你有什么建议?如何将PHPDoc引入我的项目?对不起,如果我是个傻瓜
谢谢 不是傻瓜