P
P
praticodesign2017-08-07 10:41:42
Yii
praticodesign, 2017-08-07 10:41:42

Installing your own Yii2 project from github via composer?

suppose I made some application, uploaded it to github, now I want to install it myself with a command from the console (suppose): composer require "vendor/project:*"
It gives an error:

The requested package vendor/project could not be found in any version, there may be a typo in the package name.

and more, how to install from a specific branch? I found an example, but I don't quite understand - - the version is specified!? ... and how to specify a branch?composer require "vendor/project:1.0-dev"
"extra": {
    "branch-alias": { 
        "daily": "1.0-dev" 
    } 
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2017-08-07
@AXP-dev

To do this, you need to link the repository with Packagist , this is done in a couple of clicks. And to download certain branches, you need to make releases on them in github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question