好的,作曲家正在做我的头。
我已经创建了一个测试包,并已推送到github。当我试图引入该包时,我遇到了错误:在任何版本中都找不到请求的包webee/travelparkingapps,包名称可能有拼写错误。
包编写器文件是
{
"name": "weblee/travelparkingapps",
"description" : "TravelParkingApps Library ",
"keywords": ["parking", "api"],
"license": "MIT",
"version": "0.1.0",
"authors": [
{
"name" : "Lee Smith",
"email" : "lee@weblee.co.uk",
"homepage" : "https://github.com/weblee/",
"role" : "Developer"
}
],
"require": {
"php" : ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit" : "4.*"
},
"autoload": {
"psr-4": {
"TravelParkingApps\": "src"
}
}
}
我的本地作曲家文件是:
{
"minimum-stability": "dev",
"require": {
"weblee/travelparkingapps": "0.1.*"
},
"autoload": {
"psr-4": {
"Apm\": "src/"
}
}
}
您需要将包发布到packagist。仅承诺使用GitHub并不能使其公开。