我刚刚在 https://packagist.org/发布了我的php助手库(回购:https://github.com/eacevedof/prj_theframework_helpers(。
使用此命令:作曲家需要框架/助手 安装正常,但我对安装路径不满意:
我希望这是最后的作曲家路径:/vendor/theframework/helpers/但是是:/theframework/helpers/theframework/helpers/
这是我的作曲家.json:
{
"version":"0.0.2",
"updated":"20170514",
"name": "theframework/helpers",
"type":"library",
"description": "Library for helping to create html elements using objects",
"minimum-stability": "stable",
"keywords": [
"helpers","html elements","view helpers"
],
"homepage": "https://github.com/eacevedof/prj_theframework_helpers",
"license": "MIT",
"authors": [
{
"name": "Eduardo Acevedo Farje",
"email": "eacevedof@gmail.com",
"homepage": "http://eduardoaf.com",
"role": "Developer",
"github":"https://github.com/eacevedof/",
"site":"helpers.theframework.es"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"files": ["theframework/helpers/autoload.php"]
}
}
我该如何解决这个问题?
提前感谢。
将存储库中的文件移动到根目录,而不是将它们放在子目录中。 vendor/foo/bar
基本上是你的包根目录,由于你的包(git repo(再次包含foo/bar
,你最终会得到vendor/foo/bar/foo/bar
。