Laravel 5.5包装开发需要使用Composer需要vendor_name/package_name



我开发了一个带有包装自动发现的Laravel 5.5包装,并在Git Hub上推了它

https://github.com/adamibrahim/authconfirm

我运行

$ composer require "adamibrahim/authconfirm" : "v0.1.1"

我有一个错误

could not find package adamibrahim/authconfirm at any version for your min ...

我需要在某个地方注册我的存储库,以便可以使用Composer require command?

这是我的软件包composer.json

{
"name": "adamibrahim/authconfirm",
"type": "library",
"description": ":Laravel 5.5 Auth modifications to confirm the auth email",
"keywords": [
    "Laravel5.5",
    "Auth",
],
"homepage": "https://github.com/adamibrahim/authconfirm",
"license": "MIT",
"authors": [
    {
        "name": ":Adam Ibrahim",
        "email": ":adamibrahim1701@gmail.com",
        "homepage": ":author_website",
        "role": "Developer"
    }
],
"require": {
    "illuminate/support": "~5.1",
    "php" : "~5.6|~7.0"
},
"require-dev": {
    "phpunit/phpunit" : ">=5.4.3",
    "squizlabs/php_codesniffer": "^2.3"
},
"autoload": {
    "psr-4": {
        "Adamibrahim\Authconfirm\": "src"
    }
},
"autoload-dev": {
    "psr-4": {
        "Adamibrahim\Authconfirm\": "tests"
    }
},
"extra": {
    "branch-alias": {
        "dev-master": "1.0-dev"
    }
},
"config": {
    "sort-packages": true
}
}

好吧,仅仅创建github存储库来通过作曲家使用它是不够的。您应该在https://packagist.org/上创建帐户,并在其中添加包裹以通过composer require

此外,您应该在github上设置packagist集成:

https://github.com/adamibrahim/authconfirm/settings/installations

确保在更改GitHub Packagist之后将看到这些更改。

相关内容

  • 没有找到相关文章

最新更新