php - 我提交的Composer包无法require
过去多啦不再A梦
过去多啦不再A梦 2017-06-10 09:47:26
0
2
464
Administrator@changwei MINGW64 /d/github/test
$ composer require changwei/array2text


  [InvalidArgumentException]
  Could not find package changwei/array2text at any version for your minimum-
  stability (stable). Check the package spelling or your minimum-stability


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

报上面的错误,https://packagist.org/package... 这个包在仓库是可以搜索到的,这是什么原因呢?

过去多啦不再A梦
过去多啦不再A梦

全部回复(2)
迷茫

很简单,你要在github发布release才可以,不然你只能用dev-master版本

阿神

加上你的包的版本号

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!