Answer the question
In order to leave comments, you need to log in
How to make composer use my fork?
I did a fork, then made changes to the dev-master-modify branch, now I have to add my branch to the composer.
Host repository: https://github.com/dektrium/yii2-user
My repository: https://github.com/Leopandro/yii2-user
Here you can see that I have this branch: https://github.com /Leopandro/yii2-user/network
How to do it?
i tried to do this:
"repositories":
[
{
"type": "vcs",
"url": "https://github.com/Leopandro/yii2-user"
}
],
"require": {
"dektrium/yii2-user": "dev-master-modify",
},
- The requested package dektrium/yii2-user dev-master-modify could not be found.
Answer the question
In order to leave comments, you need to log in
It was necessary to change "dev-master-modify" to "master". OH JAAAAAAAA I DID IT!!!!!!! FINALLY!!
You don't need to create a new branch in your fork. It is enough to specify "dektrium/yii2-user": "dev-master",
and composer will pull up the "master" branch of your fork.
More code:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Leopandro/yii2-user"
}
],
"require": {
"dektrium/yii2-user": "dev-master",
},
php composer.phar update dektrium/yii2-user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question