basvandorst/StravaPHP

Composer update got error

minhna opened this issue · 10 comments

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for basvandorst/stravaphp 1.0.0 -> satisfiable by basvandorst/stravaphp[1.0.0].
- basvandorst/stravaphp 1.0.0 requires league/oauth2-client dev-master -> no matching package found.

Could you fix that?
Thank you.

If I change the version to dev-master, still got the error:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for basvandorst/stravaphp dev-master -> satisfiable by basvandorst/stravaphp[dev-master]
.
- basvandorst/stravaphp dev-master requires league/oauth2-client master -> no matching package found.

I think, in the composer.json, you modify

 "require": {
        "educoder/pest": "1.0.0",
        "league/oauth2-client": "master"
    },

to

 "require": {
        "educoder/pest": "1.0.0",
        "thephpleague/oauth2-client": "master"
    },

it will solve the problem.

@minhna thanks for your suggestion, but the name "league" was right. There was something wrong with the lock-in on the old dev-master. Please checkout the new master version or the 1.0.1 version

@basvandorst If that packagist namespace is correct then the README wants updating as it currently says to use basvandorst/StravaPHP: https://github.com/basvandorst/StravaPHP/blob/master/README.md#composer-package

PS. Thanks for the library!

Ignore my previous comment, I just got completely confused sorry.

changed the version to 1.0.1 and it works.
Now I'm having an issue with lib-curl from educoder/pest repository

@minhna It think that's a development environment issue. Make sure you've installed the curl extension.
Please search for curl install windows/linux howto's :)

I had the same issue.
In my case, to fix I made 2 steps: I added some packages in composer.json, I added curl extension in php.
In composer.json I added these lines in "require" sections:

"basvandorst/StravaPHP": "1.0.0",
"educoder/pest": "1.0.0",
"league/oauth2-client": "dev-master"

In my Macosx environments with "port" I installed curl package:

sudo port install php55-curl

These instructions are fine for every php environment with composer. In order to be more accurate I'm using Lumen microframework (Laravel).

@roberto-butti Please try "basvandorst/StravaPHP": "1.0.1".

@basvandorst thank you.
I confirm that with 1.0.1 version is not necessary to add educoder/pest and league/oauth2-client
Just add in your composer:

"basvandorst/StravaPHP": "1.0.1"

Great work guys!!!