Composer package by industry

I have a forked symfony repository on GitHub and I moved the code to branch 2.4 . How can I get Composer to use this particular branch?

composer.json:

"require" : { ... "symfony/symfony" : "dev-2.4" }, "repositories" : { "type" : "vcs", "url" : "https://github.com/tamirvs/symfony" } 

But I get The requested package symfony/symfony dev-2.4 could not be found . I also tried 2.4-dev and 2.4 , but getting the same error.

All the information that I found on the Internet led me to the fact that I already tried .. any ideas?

Please note that when installing the version on 2.4. * The repository is pulled, but without my commits.

+6
source share
2 answers

I think you need to use 2.4.x-dev as described in the documentation .

For example, branch 2.0 will receive version 2.0.x-dev (for technical reasons, .x is added to make sure it is recognized as a branch, branch 2.0.x will also be valid and will be converted to 2.0.x-dev.

+10
source

Try 2.5-dev.

I believe the branch has a version number.

EDIT:

Take a look at https://github.com/tamirvs/symfony/blob/master/composer.json

 "extra": { "branch-alias": { "dev-master": "2.5-dev" } } 
+1
source

All Articles