尝试写一个包,了解一下composer,并且尝试上传到github上面,以及使用 composer require luanguang/try-make
{
"name": "luanguang/try-make",
"description": "try make a package",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Luan Guang",
//邮箱
}
],
"minimum-stability": "dev",//这条很重要,因为是开发包,所以这个要定义,不然完成包之后你是无法安装的。
"require": {
"php": ">=7.0"
},
"autoload": {
"psr-4": {
"Flower\\Rose\\": "src/Flower/Rose",
"Flower\\Lily\\": "src/Flower/Lily"
}
}
}