【问题标题】:I upload a package to packagist.org and why i can't require it?我将一个包上传到 packagist.org,为什么我不能要求它?
【发布时间】:2015-11-28 17:07:22
【问题描述】:

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 或作曲家安装时:

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

我总是出错

找不到任何版本的软件包 rrylee/presenter 以获得最低稳定性 (稳定的)。检查包拼写或您的最低稳定性

如何解决?

【问题讨论】:

    标签: php laravel composer-php packages


    【解决方案1】:

    现在你已经更新了包名,我可以把它拉到一个项目中:

    composer require rrylee/presenter

    我的 composer.json 看起来像:

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

    【讨论】:

    • 请通过请求修复它或其他来帮助我
    • 太棒了!谢谢你的垃圾
    猜你喜欢
    • 2014-05-03
    • 1970-01-01
    • 2020-02-06
    • 2016-11-07
    • 2016-12-19
    • 1970-01-01
    相关资源
    最近更新 更多