M
M
MasterCopipaster2020-07-21 15:19:23
Composer
MasterCopipaster, 2020-07-21 15:19:23

Why does composer not want to install a github package from my repository?

I forked the repository and someone changed something here it is
I added it to composer.json

"StasToken/mpdf": "dev-master"
    },
    "repositories": [
        {
            "type": "github",
            "url":  "[email protected]:StasToken/mpdf.git"
        }
    ],

I am getting the following error
composer require StasToken/mpdf


[InvalidArgumentException]
Could not find a matching version of package StasToken/mpdf. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability
(stable).


Che he needs to have releases in the same place?

full composer.json

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-07-21
@alexey-m-ukolov

Because in the fork the repository is still called mpdf / mpdf - this is the name and you need to specify it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question