Viszman
Viszman

Reputation: 1398

Composer, Could not find a version of package

i have private repository with some files that are not important now, what i want to create is package to include it to composer.json

{
    "name": "pm/multi-curl",
    "description": "Package to multicurl",
    "version": "master",
    "type": "library",
    "minimum-stability":"dev",
    "require": {
        "ext-curl": "^7.1"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "pm/multi-curl",
                "version": "dev-master",
                "source": {
                    "url": "[email protected]:dk/multicurl.git",
                    "type": "git",
                    "reference": "master"
                },
                "autoload": {
                    "psr-0" : {
                        "PM\\MultiCurl" : "src"
                    }
                }
            }
        }
    ],
    "authors": [
        {
            "name": "dk",
            "email": "[email protected]"
        }
    ]
}

but when i execute composer require pm/multi-curl composer gives me this message Could not find a version of package pm/multi-curl matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability. i tried to change stability to dev but that didn't help at all. I also tried to do it with composer.json that looks like this:

{
    "name": "pm/multi-curl",
    "description": "Package to multicurl",
    "version": "master",
    "type": "library",
    "minimum-stability":"dev",
    "require": {
        "ext-curl": "^7.1"
    },
    "authors": [
        {
            "name": "dk",
            "email": "[email protected]"
        }
    ]
}

pmgit.pm.com is gitlab and to inform you when i execute composer search performance-media/multi-curl it returns correct description. What i do wrong.

Upvotes: 2

Views: 3451

Answers (1)

Cadot.eu
Cadot.eu

Reputation: 394

do you can use the master branch by

composer require pm/multi-curl:dev-master

Upvotes: 2

Related Questions