[英]How to configure composer install path?
我剛剛在https://packagist.org/中發布了我的php幫助程序庫(回購: https : //github.com/eacevedof/prj_theframework_helpers )。
使用以下命令:作曲家需要框架/幫助者,安裝可以正常進行,但我對安裝路徑不滿意:
我希望這是最終的作曲者路徑: / vendor / theframework / helpers /,但是是: / theframework / helpers / theframework / helpers /
這是我的composer.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
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.