Adler Medrado 和尊
Adler Medrado 和尊

Reputation: 2118

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.

Upvotes: 5

Views: 3502

Answers (2)

pollux1er
pollux1er

Reputation: 5929

{
    "require": {
        "propel/propel": "~2.0@dev"
    }
}

This is the one we actually use.

Upvotes: 1

j0k
j0k

Reputation: 22756

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"
    }
}

Upvotes: 8

Related Questions