luanguang / try-make
try make a package
dev-master
2018-04-12 10:20 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2024-10-25 13:54:50 UTC
README
尝试写一个包,了解一下composer,并且尝试上传到github上面,以及使用 composer require luanguang/try-make
使用composer进行初始化操作,也就是composer init 如下composer.json
{
"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"
}
}
}