0

I have been trying to install a git repository that does not have a composer.json file. I followed the instructions on the composer website and also found in this stackexchange post: Composer - adding git repository without composer.json

However, I am still not able to get it to work. I keep getting an error stating: "The requested package phpredis/phredis could not be found in any version, there may be a typo in the package name.

This is my composer.json file on my system (note that predis/predis loads fine but I want to use the other redis package):

{
"respositories": [
    {
        "type":"package",
        "package": 
        {
            "name":"phpredis/phpredis",
            "version":"develop",
            "dist":
            {
                "url":"https://github.com/phpredis/phpredis.git",
                "type":"git"
            }
        }
    }
],

    "require": {
        "predis/predis": "^1.0",
        "phpredis/phpredis":"dev-master@dev"
    }
}

I know that I must be making a simple error somewhere but I have spent hours and can't figure it out. Thanks for the help.

1 Answer 1

1

It's useless to fiddle with any composer.json replacement for this repository because it contains C software that needs to be compiled and installed as a PHP extension. Composer won't do this for you, it can only manage PHP source code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.