繁体   English   中英

如何配置作曲家的安装路径?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM