yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

Unable to install yii2-apidoc #195

Closed markch123 closed 3 years ago

markch123 commented 4 years ago

Hi,

I tried installing in an empty dir using instructions from README and received the following. Does it require a yii installation to be present?

Also it appears its still not supporting php >= 7.2. If yes it would be great to include a note in the README or maybe add a version dependency in composer.json.

$ php -version PHP 7.1.33-15+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Apr 19 2020 07:59:08) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.33-15+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

$ composer require --prefer-dist yiisoft/yii2-apidoc Using version ^2.1 for yiisoft/yii2-apidoc ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, deleting ./composer.json.

samdark commented 4 years ago

Same as https://github.com/yiisoft/yii2-apidoc/issues/123?

bizley commented 4 years ago

@markch123 could you retry it with 2.1.5 and if there will be still a problem try solutions from #123 and then get back to us?

markch123 commented 3 years ago

Hi @bizley,

I tried without much luck....

composer require --prefer-dist yiisoft/yii2-apidoc composer require --update-with-dependencies --prefer-dist yiisoft/yii2-apidoc composer require --update-with-all-dependencies --prefer-dist yiisoft/yii2-apidoc

Output

` Problem 1

bizley commented 3 years ago

The solution was rather

composer update --with-all-dependencies yiisoft/yii2-apidoc phpdocumentor/reflection-docblock cebe/markdown

or removing the vendor and making a clean install with yii2-apidoc.

Please try it and for now I'm closing this issue for the same reason as in #123