marmelab / microrest.php

A micro web application providing a REST API on top of any relational database, using Silex and Doctrine DBAL
http://marmelab.com/blog/2015/01/05/introducing-microrest-raml-api-in-silex.html
MIT License
185 stars 22 forks source link

composer require marmelab/microrest "~1.0@dev" #11

Closed ajacquelin closed 9 years ago

ajacquelin commented 9 years ago

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

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

Cheers,

romgapuz commented 9 years ago

This was fixed by https://github.com/tmeliberty/microrest.php/commit/575ed22147783218796fdbb1431a3b227c60b049 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" } ] }

jeromemacias commented 9 years ago

@tmeliberty Can you open a pull request please ?

jeromemacias commented 9 years ago

Fixed by 7034582