Search code examples
phppropelcomposer-php

Install propel using composer


I am trying to use propel with composer but I'm getting errors.

My composer.json is:

{
    "require": {
        "propel/propel" : "*"
    }
}

and the error is:

  Problem 1
    - The requested package propel/propel * could not be found.

Does anyone knows what am I missing? I'm googling it but I don't get it.


Solution

  • Are you trying to use propel 1.x or propel 2?

    Try this for propel1:

    {
        "require": {
            "propel/propel1": "1.6.*"
        }
    }
    

    For propel 2, I think this can work:

    {
        "require": {
            "propel/propel": "dev-master"
        }
    }