Setting an alias for the main branch in the composer

I am trying to pack a module for use with a composer. I have a valid composer file, and I can install it with the composer, but only when I specify that it should use the dev releases (via the @dev version directive or the minimal dev stability). I had a problem packing my repo so that it would be considered as a major release.

I found the composer a document on aliases that seems to be made for my case, but I can't get it to work. Here is the relevant part of my composer.json :

    "extra": {
    "branch-alias": {
        "dev-master": "1.0"
    }
}

Also for reference heres is required from my main project composer file:

"require": {
    "misterglass/kohana-twig"  : "1.*"
},

And the actual error from the composer:

1     - misterglass/kohana-twig 1. * .

+4
1

IR# compposer, , .

, , github.

+4

Source: https://habr.com/ru/post/1534849/


All Articles