How to force Composer to download a local package?

后端 未结 1 1831
有刺的猬
有刺的猬 2021-02-20 11:00

Let\'s say we have the following directory structure, we assume my-package also exists on Packagist:

- apps         


        
相关标签:
1条回答
  • 2021-02-20 11:25
    "require": {
        "my/package": "*"
    }
    

    In case of VCS or path repository types, you need to specify version of the package you request. So instead of using *, as you have currently, use @dev:

    "require": {
        "my/package": "@dev"
    }
    
    0 讨论(0)
提交回复
热议问题