【发布时间】:2018-06-06 14:56:20
【问题描述】:
我开发了一个 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 命令?
这是我的包 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
}
}
【问题讨论】:
标签: laravel github composer-php package packagist