composer create-project from private repo

前端 未结 5 1406
醉话见心
醉话见心 2020-12-24 13:56

I have a private project hosted on Bit Bucket. I have an SSH key setup. Is there a way I can use the php composer create-project vendor/name path command in the

5条回答
  •  眼角桃花
    2020-12-24 14:51

    Since this post has some traction, I thought I'd add another solution which I use. Open up ~/.bash_profile

    and add something like

    function _cmsname {
        composer create-project vendor/package --repository-url=http://private.repo.url.co.uk/ --stability=dev "$1"
    }
    alias cmsname=_cmsname
    

    and the just type cmsname projectname in terminal.

提交回复
热议问题