marmelab/microrest.php

composer require marmelab/microrest "~1.0@dev"

Closed this issue · 3 comments

Hello,
I'm trying to install microrest with composer and I get an error.
command:
composer require marmelab/microrest "~1.0@dev"

the error:
Problem 1
- Installation request for marmelab/microrest ~1.0@dev -> satisfiable by marmelab/microrest[1.0.x-dev].
- marmelab/microrest 1.0.x-dev requires alecsammon/php-raml-parser 1.0.0.x-dev -> no matching package found.

Do you know how can I fix it ? I'm not familiar with composer so any help will be very much appreciated.

Cheers,

This was fixed by tmeliberty@575ed22 but was not merged. So you need to override the dependency to this repo.

The solution is https://getcomposer.org/doc/articles/aliases.md#require-inline-alias. Use the composer.json below:

{
"require": {
"marmelab/microrest": "~1.0@dev",
"alecsammon/php-raml-parser": "dev-master as 1.0.0.x-dev"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/tmeliberty/microrest.php.git"
}
]
}

@tmeliberty Can you open a pull request please ?

Fixed by 7034582