Install propel using composer

I am trying to use propel with a composer, but I am getting errors.

My composer .json:

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

and error:

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

Does anyone know what I am missing? I am looking for him, but I do not understand.

+5
source share
2 answers

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 might work:

{
    "require": {
        "propel/propel": "dev-master"
    }
}
+9
source
{
    "require": {
        "propel/propel": "~2.0@dev"
    }
}

This is the one we are actually using.

0
source

All Articles