luanguang / try-make
try make a package
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/luanguang/try-make
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2025-10-10 18:41:45 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"
}
}
}