"name": "foostart/sample",
"type": "library",
"description": "Create overview sample can intergrate other project",
"keywords": ["package","package"],
"homepage": "https://github.com/InfinitePW/Foostart",
"license": "MIT",
"authors": [
{
"name": "Foostart",
"email": "nguyenanhhoanld@gmail.com",
"role": "Developer"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"Sample": "src"
}
}
当我从GitHub向Packagist.org提交包裹时。我对“composer.json”有疑问。 我该如何解决? 谢谢。 https://github.com/InfinitePW/Foostart
答案 0 :(得分:1)
我将此作为答案添加,以便其他人可以受益:
composer.json需要位于你的git项目的根目录中,以便其他项目(包括packagist.org)能够利用它。