我上传了一个包到packagist.org以及为什么我不能要求它?

时间:2015-09-03 02:07:57

标签: php laravel composer-php packages

packagist link

github link

这是我的composer.json:

json
{
    "name": "rrylee/presenter",
    "type": "library",
    "description": "Simple view presenters",
    "keywords": [
        "presenter",
        "laravel5",
        "view"
    ],
    "license": "MIT",
    "authors": [
        {
            "name": "RryLee",
            "email": "qq215672398@126.com"
        }
    ],
    "require": {
        "php": ">=5.4.0",
        "illuminate/support": "5.0.*"
    },
    "require-dev": {
        "phpspec/phpspec": "^2.2",
        "mockery/mockery": "^0.9.4"
    },
    "autoload": {
        "psr-0": {
            "Rrylee\\Presenter": "src/"
        }
    },
    "minimum-stability": "dev"
}

当我的作曲家需要rrylee / presenter或composer安装时:

{
    "require": {
        "rrylee/presenter": "0.1.*"
    },
}

我总是得到错误

  

无法在任何版本中找到最小稳定性的套餐rrylee / presenter      (稳定)。检查包装拼写或最小稳定性

如何解决?

1 个答案:

答案 0 :(得分:0)

现在您已更新了软件包名称,我可以将其添加到项目中:

composer require rrylee/presenter

我的composer.json看起来像:

{
    "require": {
        "rrylee/presenter": "^0.1.0"
    }
}