Composer, move files from /vendor/ folder

后端 未结 3 1037
遇见更好的自我
遇见更好的自我 2021-02-04 05:36

I\'ve just started using composer with PHPStorm \'cause I\'m bored of downloading dependencies from github manually. But there are some things I can\'t understand.

Compo

相关标签:
3条回答
  • 2021-02-04 06:07
    "config": {
        "vendor-dir": "path/to/wherever"
    },
    

    in your composer.json file

    0 讨论(0)
  • 2021-02-04 06:09

    The documentation states that you can do this:

    {
        "extra": {
            "installer-paths": {
                "sites/example.com/modules/{$name}": ["vendor/package"]
            }
        }
    }
    
    0 讨论(0)
  • 2021-02-04 06:14

    This question is answered here.

    Vendor directory is a Composer convention. Good programming practice is to prefer convention over configuration. You can reference you files and classes in a number of ways with Composer.

    0 讨论(0)
提交回复
热议问题