1

I'm trying to install the Crate PDO driver from here: https://github.com/crate/crate-pdo

The manual says to use composer.phar like so:

php composer.phar require crate/crate-pdo:~0.0.3

However, that produces the following:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for crate/crate-pdo 0.0.7.* -> satisfiable by crate/crate-pdo[0.0.7].
- crate/crate-pdo 0.0.7 requires amphp/artax 1.0.0-rc4 -> no matching package found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
   see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.

I've looked at the minimum-stability setting, but am unsure how to use that (where exactly do I set that). This is also my first time using composer, so perhaps I'm overlooking something?

Community
  • 1
  • 1
Michael
  • 1,247
  • 1
  • 8
  • 18

1 Answers1

1

First go ahead and grab amphp/artax:~1.0.0-rc2

php composer.phar require amphp/artax:~1.0.0-rc2

Then go ahead and do:

php composer.phar require crate/crate-pdo:~0.0.3

If that doesn't work, then edit composer.json and add in the req for those projects:

{
    "require": {
        "crate/crate-dbal": "~0.0.4",
        "amphp/artax": "~1.0.0-rc2"
    }
}

The problem is that composer can't resolve the amphp/artax package for some reason.

Edit

As of 1/8/2015 there's a fresh release on git that does not require the work around described above. Simply require crate and run composer update.

Ohgodwhy
  • 49,779
  • 11
  • 80
  • 110