klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Installing problems #344

Closed maganius closed 7 years ago

maganius commented 7 years ago

Im trying install this library via composer but always I receive this error:

composer require klein/klein

Using version ^2.1 for klein/klein ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

And in "vendor" the folder klein does not exists.

bmd commented 7 years ago

I can't reproduce this problem at all in a clean repo. Try setting the version explicitly in your require, like:

composer require klein/klein:2.1.1
maganius commented 7 years ago

Thanks now with the version definition its working.